public ConstructorBinding(Type type, IntPtr pyTypeHndl, ConstructorBinder ctorBinder)
 {
     this.type       = type;
     this.pyTypeHndl = pyTypeHndl; // steal a type reference
     this.ctorBinder = ctorBinder;
     repr            = IntPtr.Zero;
 }
Beispiel #2
0
 public ConstructorBinding(Type type, PyType typeToCreate, ConstructorBinder ctorBinder)
 {
     this.type         = type;
     this.typeToCreate = typeToCreate;
     this.ctorBinder   = ctorBinder;
     repr = IntPtr.Zero;
 }
Beispiel #3
0
 public MethodObject(MaybeType type, string name, MethodBase[] info, bool allow_threads = MethodBinder.DefaultAllowThreads)
 {
     this.type     = type;
     this.name     = name;
     this.infoList = new List <MaybeMethodInfo>();
     binder        = new MethodBinder();
     foreach (MethodBase item in info)
     {
         this.infoList.Add(item);
         binder.AddMethod(item);
         if (item.IsStatic)
         {
             this.is_static = true;
         }
     }
     binder.allow_threads = allow_threads;
 }
Beispiel #4
0
 internal ClassBase(Type tp)
 {
     dotNetMembers = new List <string>();
     indexer       = null;
     type          = tp;
 }
 internal ConstructorBinder(Type containingType)
 {
     _containingType = containingType;
 }
Beispiel #6
0
 public MethodObject(MaybeType type, string name, MethodBase[] info)
     : this(type, name, info, allow_threads : AllowThreads(info))
 {
 }