private CilEntity GetTypeEntity() { BlobReader blobReader = _readers.MdReader.GetBlobReader(_typeSpecification.Signature); SignatureTypeCode typeCode = blobReader.ReadSignatureTypeCode(); while (typeCode == SignatureTypeCode.GenericTypeInstance) { typeCode = blobReader.ReadSignatureTypeCode(); } if (typeCode == SignatureTypeCode.TypeHandle) { Handle handle = blobReader.ReadTypeHandle(); return(CilDecoder.DecodeEntityHandle((EntityHandle)handle, ref _readers)); } return(new CilEntity(null, EntityKind.TypeSpecification)); }
private CilEntity GetEntity() { var handle = _eventDefinition.Type; return(CilDecoder.DecodeEntityHandle(handle, ref _readers)); }