Exemple #1
0
        internal ConstructorGen(TypeGen owner, MethodAttributes attributes, MethodImplAttributes implFlags)
            : base(owner, null, owner)
        {
            _attributes = attributes;
            _implFlags  = implFlags;

            owner.RegisterForCompletion(this);
        }
Exemple #2
0
        public ConstructorGen(TypeGen owner, MethodAttributes attributes, MethodImplAttributes implFlags)
            : base(owner, null)
        {
            this.attributes = attributes;
            this.implFlags  = implFlags;

            owner.RegisterForCompletion(this);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
            }
        }
Exemple #5
0
        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);
            }
        }
Exemple #6
0
        protected RoutineGen(TypeGen owner, Type returnType)
            : base(returnType)
        {
            this.ownerType = this.owner = owner;

            if (owner != null)
            {
                owner.RegisterForCompletion(this);
            }
        }
Exemple #7
0
        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);
        }
Exemple #8
0
        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);
        }
Exemple #9
0
        protected RoutineGen(TypeGen owner, Type returnType, ICodeGenBasicContext context)
            : base(returnType, owner.TypeMapper)
        {
            _context  = context;
            OwnerType = Owner = owner;

            if (owner != null)
            {
                owner.RegisterForCompletion(this);
            }
        }