internal ConstructorGen(TypeGen owner, MethodAttributes attributes, MethodImplAttributes implFlags) : base(owner, null, owner) { _attributes = attributes; _implFlags = implFlags; owner.RegisterForCompletion(this); }
public ConstructorGen(TypeGen owner, MethodAttributes attributes, MethodImplAttributes implFlags) : base(owner, null) { this.attributes = attributes; this.implFlags = implFlags; owner.RegisterForCompletion(this); }
internal FieldGen(TypeGen owner, string name, Type type, FieldAttributes attrs) { _owner = owner; _attrs = attrs; Name = name; _type = type; _fb = owner.TypeBuilder.DefineField(name, type, attrs); 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); } }
void LockSignature() { if (_pb == null) { _indexParameters.Lock(); _pb = _owner.TypeBuilder.DefineProperty(ImplementedInterface == null ? Name : ImplementedInterface.FullName + "." + Name, PropertyAttributes.None, _type, _indexParameters.TypeArray); _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); }
public 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, ICodeGenBasicContext context) : base(returnType, owner.TypeMapper) { _context = context; OwnerType = Owner = owner; if (owner != null) { owner.RegisterForCompletion(this); } }