예제 #1
0
 public ConstructorBinding(Type type, IntPtr pyTypeHndl, ConstructorBinder ctorBinder)
 {
     this.type       = type;
     this.pyTypeHndl = pyTypeHndl; // steal a type reference
     this.ctorBinder = ctorBinder;
     repr            = IntPtr.Zero;
 }
예제 #2
0
 public ConstructorBinding(Type type, PyType typeToCreate, ConstructorBinder ctorBinder)
 {
     this.type         = type;
     this.typeToCreate = typeToCreate;
     this.ctorBinder   = ctorBinder;
     repr = IntPtr.Zero;
 }
예제 #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;
 }
예제 #4
0
 internal ClassBase(Type tp)
 {
     dotNetMembers = new List <string>();
     indexer       = null;
     type          = tp;
 }
예제 #5
0
 internal ConstructorBinder(Type containingType)
 {
     _containingType = containingType;
 }
예제 #6
0
 public MethodObject(MaybeType type, string name, MethodBase[] info)
     : this(type, name, info, allow_threads : AllowThreads(info))
 {
 }