internal SerializationEvents(Type t)
{
_onSerializingMethods = GetMethodsWithAttribute(typeof(OnSerializingAttribute), t);
_onSerializedMethods = GetMethodsWithAttribute(typeof(OnSerializedAttribute), t);
_onDeserializingMethods = GetMethodsWithAttribute(typeof(OnDeserializingAttribute), t);
_onDeserializedMethods = GetMethodsWithAttribute(typeof(OnDeserializedAttribute), t);
}