GetMethodsByAttribute() static private method

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