c# - DateTime is missing GetObjectData. Or am I missing something? -
as far remember concrete implements interfaces :) looking @ datetime struct seems implement iserializable. suppose implement:
void getobjectdata(serializationinfo info, streamingcontext context);
i can't find implementation on meta info of datetime. also:
datetime.now.getobjectdata(null,null);
seems throw compile time exception. haven't checked ilspy yet...
ideas?
iserializable explicity implemented. can phone call method this:
iserializable = datetime.now; now.getobjectdata(null, new streamingcontext()); //don't send null first parameter
c# datetime serialization interface
No comments:
Post a Comment