示例#1
0
        public CorEvent GetEventFromToken(uint token)
        {
            var  mdi     = this.GetMetaDataInterface <IMetaDataImport>();
            uint tdToken = 0x02000000 + MDAPI.GetEventOwnerRid(mdi, token);
            var  cls     = GetClassFromToken(tdToken);

            return(cls == null ? null : new CorEvent(cls, token));
        }