internal ConstructorGen(TypeGen owner, MethodAttributes attributes, MethodImplAttributes implFlags) : base(owner, null) { this.attributes = attributes; this.implFlags = implFlags; owner.RegisterForCompletion(this); }
void LockSignature() { if (pb == null) { indexParameters.Lock(); pb = owner.TypeBuilder.DefineProperty(interfaceType == null ? name : interfaceType.FullName + "." + name, PropertyAttributes.None, type, indexParameters.TypeArray); owner.RegisterForCompletion(this); } }
internal FieldGen(TypeGen owner, string name, Type type, FieldAttributes attrs) { this.owner = owner; this.attrs = attrs; this.name = name; this.type = type; fb = owner.TypeBuilder.DefineField(name, type, attrs); owner.RegisterForCompletion(this); }
protected RoutineGen(TypeGen owner, Type returnType) : base(returnType) { this.ownerType = this.owner = owner; if (owner != null) { owner.RegisterForCompletion(this); } }
internal EventGen(TypeGen owner, string name, Type type, MethodAttributes mthAttr) { this.owner = owner; this.name = name; this.type = type; this.attrs = mthAttr; eb = owner.TypeBuilder.DefineEvent(name, EventAttributes.None, type); owner.RegisterForCompletion(this); }