DmdType[] ReadDeclaredInterfacesCore_COMThread(IList <DmdType> genericTypeArguments) { reader.Dispatcher.VerifyAccess(); var tokens = MDAPI.GetInterfaceImplTokens(reader.MetaDataImport, (uint)MetadataToken); if (tokens.Length == 0) { return(null); } var res = new DmdType[tokens.Length]; for (int i = 0; i < res.Length; i++) { uint token = tokens[i]; uint ifaceToken = MDAPI.GetInterfaceImplInterfaceToken(reader.MetaDataImport, token); res[i] = reader.ResolveType((int)ifaceToken, genericTypeArguments, null, DmdResolveOptions.ThrowOnError); } return(res); }
void Initialize_NoLock() { uint ifaceToken = MDAPI.GetInterfaceImplInterfaceToken(readerModule.MetaDataImport, OriginalToken.Raw); @interface = readerModule.ResolveTypeDefOrRefInternal(ifaceToken, gpContext); }