System.Runtime.Serialization.SerializationCallbacks.SerializationCallbacks C# (CSharp) Method

SerializationCallbacks() public method

public SerializationCallbacks ( Type type ) : System
type System.Type
return System
        public SerializationCallbacks(Type type)
        {
            onSerializingList = GetMethodsByAttribute(type, typeof(OnSerializingAttribute));
            onSerializedList = GetMethodsByAttribute(type, typeof(OnSerializedAttribute));
            onDeserializingList = GetMethodsByAttribute(type, typeof(OnDeserializingAttribute));
            onDeserializedList = GetMethodsByAttribute(type, typeof(OnDeserializedAttribute));
        }