Наследование: IronPython.Runtime.Types.PythonTypeDataSlot, ICodeFormattable
Пример #1
0
            public BoundEvent(ReflectedEvent /*!*/ reflectedEvent, object instance, PythonType /*!*/ ownerType)
            {
                Assert.NotNull(reflectedEvent, ownerType);

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

                _event = reflectedEvent;
                _instance = instance;
                _ownerType = ownerType;
            }
Пример #3
0
 public static ReflectedEvent.BoundEvent MakeBoundEvent(ReflectedEvent eventObj, object instance, Type type)
 {
     return(new ReflectedEvent.BoundEvent(eventObj, instance, DynamicHelpers.GetPythonTypeFromType(type)));
 }
Пример #4
0
 public static ReflectedEvent.BoundEvent MakeBoundEvent(ReflectedEvent eventObj, object instance, Type type)
 {
     return new ReflectedEvent.BoundEvent(eventObj, instance, DynamicHelpers.GetPythonTypeFromType(type));
 }
Пример #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);
 }
Пример #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;
 }