Is implementing ISerializable interface necessary when not implementing any custom serialization/deserialization

后端 未结 6 1618
花落未央
花落未央 2021-01-11 10:45

I am looking at a class in a solution that implements the ISerializable interface. It has a GetObjectData method for serialization as required by t

6条回答
  •  抹茶落季
    2021-01-11 11:16

    Implementing Iserializable gives a performance improvement because there is no need to use reflection to serialize the object

提交回复
热议问题