Ejemplo n.º 1
0
        public static void AddRemoveEventHelper(object method, object instance, UserType context, object eventValue, SymbolId name)
        {
            object callable = Ops.GetDescriptor(method, instance, context);
            if (!Ops.IsCallable(callable)) {
                throw Ops.TypeError("Expected callable value for {0}, but found {1}", name.GetString(),
                    Ops.GetDynamicType(method).Name);
            }

            Ops.Call(callable, eventValue);
        }
Ejemplo n.º 2
0
 void ISuperDynamicObject.SetDynamicType(UserType newType)
 {
     (GetObject() as ISuperDynamicObject).SetDynamicType(newType);
 }