private IEnumerable <CilEventDefinition> GetEvents()
 {
     foreach (var handle in _typeDefinition.GetEvents())
     {
         var eventDef = _readers.MdReader.GetEventDefinition(handle);
         yield return(CilEventDefinition.Create(eventDef, MetadataTokens.GetToken(handle), ref _readers, this));
     }
 }
 internal static CilEventDefinition Create(EventDefinition eventDefinition, int token, ref CilReaders readers, CilTypeDefinition declaringType)
 {
     CilEventDefinition eventDef = new CilEventDefinition();
     eventDef._eventDefinition = eventDefinition;
     eventDef._readers = readers;
     eventDef._typeDefinition = declaringType;
     eventDef._accessors = eventDefinition.GetAccessors();
     eventDef._isAdderInitialized = false;
     eventDef._isRemoverInitialized = false;
     eventDef._isRaiserInitialized = false;
     eventDef._isEntityInitialized = false;
     eventDef._token = token;
     return eventDef;
 }
        internal static CilEventDefinition Create(EventDefinition eventDefinition, int token, ref CilReaders readers, CilTypeDefinition declaringType)
        {
            CilEventDefinition eventDef = new CilEventDefinition();

            eventDef._eventDefinition      = eventDefinition;
            eventDef._readers              = readers;
            eventDef._typeDefinition       = declaringType;
            eventDef._accessors            = eventDefinition.GetAccessors();
            eventDef._isAdderInitialized   = false;
            eventDef._isRemoverInitialized = false;
            eventDef._isRaiserInitialized  = false;
            eventDef._isEntityInitialized  = false;
            eventDef._token = token;
            return(eventDef);
        }