protected WeakActionBase(object listener, MethodInfo method) { objectRef = new DataStructures.WeakReference <object>(listener); this.method = method; if (method.IsStatic == true) { throw new ArgumentException("Cannot create weak event to a static method"); } #if NETFX_CORE var attributes = (CompilerGeneratedAttribute[])method.GetType().GetTypeInfo().GetCustomAttributes(typeof(CompilerGeneratedAttribute), false); if (attributes.Length != 0) { throw new ArgumentException("Cannot create weak event to anonymous method with closure."); } #else if (method.DeclaringType.GetCustomAttributes(typeof(CompilerGeneratedAttribute), false).Length != 0) { throw new ArgumentException("Cannot create weak event to anonymous method with closure."); } #endif }
internal GenericEntityFunctions(DataStructures.WeakReference <EnginesRoot> weakReference) { _weakReference = weakReference; }
public EntitiesSubmitter(EnginesRoot enginesRoot) { _weakReference = new DataStructures.WeakReference <EnginesRoot>(enginesRoot); }
public GenericEntityFactory(DataStructures.WeakReference <EnginesRoot> weakReference) { _weakEngine = weakReference; }
public GenericentityStreamConsumerFactory(DataStructures.WeakReference <EnginesRoot> weakReference) { _enginesRoot = weakReference; }
public GenericEntitiesStream(DataStructures.WeakReference <EnginesRoot> weakReference) { _weakEngine = weakReference; }