internal static ReferenceHandle Register(MessengerImpl messenger, object target, bool weakreference) { var attrs = MessageHandleUtil.GetAttributes(target.GetType()); var handles = new ReferenceHandle[attrs.Length]; for (int i = 0; i < attrs.Length; i++) { var attr = attrs[i]; handles[i] = attr.m_Register(messenger, target, attr, weakreference); } return(new ReferenceHandle(handles)); }
public static void Preload(Type type) { MessageHandleUtil.GetAttributes(type); }