Exemplo n.º 1
0
 public ConstructorBinding(Type type, IntPtr pyTypeHndl, ConstructorBinder ctorBinder)
 {
     this.type = type;
     Runtime.XIncref(pyTypeHndl);
     this.pyTypeHndl = pyTypeHndl;
     this.ctorBinder = ctorBinder;
     repr            = IntPtr.Zero;
 }
Exemplo n.º 2
0
 public BoundContructor(Type type, IntPtr pyTypeHndl, ConstructorBinder ctorBinder, ConstructorInfo ci)
 {
     this.type = type;
     Runtime.XIncref(pyTypeHndl);
     this.pyTypeHndl = pyTypeHndl;
     this.ctorBinder = ctorBinder;
     ctorInfo        = ci;
     repr            = IntPtr.Zero;
 }
Exemplo n.º 3
0
        internal ClassObject(Type tp) : base(tp)
        {
            ctors  = type.GetConstructors();
            binder = new ConstructorBinder(type);

            foreach (ConstructorInfo t in ctors)
            {
                binder.AddMethod(t);
            }
        }