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

DefineEvent() public method

public DefineEvent ( string name, EventAttributes eventAttributes, Type type ) : IILEvent
name string
eventAttributes EventAttributes
type Type
return IILEvent
        public IILEvent DefineEvent(string name, EventAttributes eventAttributes, Type type)
        {
            CloseInScope();
            _sourceCodeWriter.WriteLine($"event {type.ToSimpleName()} {name};");
            return new ILEventDebugImpl(_typeBuilder.DefineEvent(name, eventAttributes, type));
        }