Exemplo n.º 1
0
 public EmitFieldBuilder DefineField(string name, EmitType type, EmitVisibility visibility = EmitVisibility.Public,
     bool isStatic = false, bool isReadonly = false, bool isVolatile = false)
 {
     var field = new EmitFieldBuilder(this, name, type, visibility, isStatic, isReadonly);
     memberBuilders.Add(new EmitFieldReference(() => field));
     return field;
 }
Exemplo n.º 2
0
        public EmitFieldBuilder DefineField(string name, EmitType type, EmitVisibility visibility = EmitVisibility.Public,
                                            bool isStatic = false, bool isReadonly = false, bool isVolatile = false)
        {
            var field = new EmitFieldBuilder(this, name, type, visibility, isStatic, isReadonly);

            memberBuilders.Add(new EmitFieldReference(() => field));
            return(field);
        }