BTDB.IL.ILDynamicTypeDebugImpl.DefineField C# (CSharp) Method

DefineField() public method

public DefineField ( string name, Type type, FieldAttributes fieldAttributes ) : IILField
name string
type Type
fieldAttributes FieldAttributes
return IILField
        public IILField DefineField(string name, Type type, FieldAttributes fieldAttributes)
        {
            CloseInScope();
            _sourceCodeWriter.WriteLine($"{type.ToSimpleName()} {name};");
            return new ILFieldImpl(_typeBuilder.DefineField(name, type, fieldAttributes));
        }