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