How to serialize & deserialize static reference object?
问题 i want to serialize & deserialize a object (this object has reference) using BinaryFormatter. i have expected that 'DeserializedObject.Equals(A.Empty)' is same to below code. but, a result is different. in order to 'DeserializedObject == A.Empty', how to use serialize/deserialize ? [Serializable] public class A { private string ID = null; private string Name = null; public A() { } public static A Empty = new A() { ID = "Empty", Name = "Empty" }; } class Program { static void Main(string[]