Inheritance: IronPython.Runtime.Types.PythonTypeDataSlot, ICodeFormattable
            public BoundEvent(ReflectedEvent /*!*/ reflectedEvent, object instance, PythonType /*!*/ ownerType)
            {
                Assert.NotNull(reflectedEvent, ownerType);

                _event     = reflectedEvent;
                _instance  = instance;
                _ownerType = ownerType;
            }
Example #2
0
            public BoundEvent(ReflectedEvent/*!*/ reflectedEvent, object instance, PythonType/*!*/ ownerType) {
                Assert.NotNull(reflectedEvent, ownerType);

                _event = reflectedEvent;
                _instance = instance;
                _ownerType = ownerType;
            }
Example #3
0
 public static ReflectedEvent.BoundEvent MakeBoundEvent(ReflectedEvent eventObj, object instance, Type type)
 {
     return(new ReflectedEvent.BoundEvent(eventObj, instance, DynamicHelpers.GetPythonTypeFromType(type)));
 }
Example #4
0
 public static ReflectedEvent.BoundEvent MakeBoundEvent(ReflectedEvent eventObj, object instance, Type type)
 {
     return new ReflectedEvent.BoundEvent(eventObj, instance, DynamicHelpers.GetPythonTypeFromType(type));
 }
Example #5
-1
 public BuiltinEventInfo(ReflectedEvent value, ProjectState projectState)
     : base(ClrModule.GetPythonType(value.Info.EventHandlerType), projectState)
 {
     _value = value;
     _doc = null;
     _type = ClrModule.GetPythonType(value.Info.EventHandlerType);
 }
Example #6
-1
 internal static ReflectedEvent GetReflectedEvent(EventTracker tracker) {
     ReflectedEvent res;
     lock (_eventCache) {
         if (!_eventCache.TryGetValue(tracker, out res)) {
             if (PythonBinder.IsExtendedType(tracker.DeclaringType)) {
                 _eventCache[tracker] = res = new ReflectedEvent(tracker, true);
             } else {
                 _eventCache[tracker] = res = new ReflectedEvent(tracker, false);
             }
         }
     }
     return res;
 }