3 instantiations of MetadataToken
System.AddIn (3)
System\Addin\MiniReflection\MiniAssembly.cs (1)
117return new MetadataToken(MDTables.Tables.TypeDef, i + 1);
System\Addin\MiniReflection\TypeInfo.cs (2)
520MetadataToken method = new MetadataToken(MDTables.Tables.MethodDef, i); 680MetadataToken token = new MetadataToken(mapToTable[tableCode], index);
40 references to MetadataToken
System.AddIn (40)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (3)
367internal void SeekToMDToken(MetadataToken token) 495internal MetadataToken ReadMetadataToken(Encodings E) 498MetadataToken Result;
System\Addin\MiniReflection\MiniAssembly.cs (5)
99MetadataToken token = FindTypeDef(_peFile, _peFile.MetaData, typeName, nameSpace); 103private static MetadataToken FindTypeDef(PEFileReader peFile, MDTables mdScope, String typeName, String nameSpace) 141public MiniAssembly ResolveAssemblyRef(MetadataToken token, bool throwOnError) 252public static bool Equals(MiniAssembly assemblyA, PEFileReader peFileB, MetadataToken assemblyRefB) 274private static AssemblyInfo ReadAssemblyRef(PEFileReader peFile, MetadataToken assemblyRef)
System\Addin\MiniReflection\MiniModule.cs (9)
94public IList<MetadataToken> GetGenericTypes() 97List<MetadataToken> genericTypeTokens = new List<MetadataToken>(); 104MetadataToken genericTypeToken = _peFile.MetaData.ReadMetadataToken(MDTables.Encodings.TypeOrMethodDef); // owner 132IList<MetadataToken> genericTypeTokens = GetGenericTypes(); 140MetadataToken targetType = MetaData.ReadMetadataToken(MDTables.Encodings.HasCustomAttribute); 141MetadataToken caType = MetaData.ReadMetadataToken(MDTables.Encodings.CustomAttributeType); 156MetadataToken customAttributeType = MetaData.ReadMetadataToken(MDTables.Encodings.MemberRefParent); 159MetadataToken resolutionScope = MetaData.ReadMetadataToken(MDTables.Encodings.ResolutionScope);
System\Addin\MiniReflection\TypeInfo.cs (23)
64private readonly MetadataToken _mdToken; 76internal TypeInfo(MetadataToken typeDef, MiniAssembly assembly) 94internal TypeInfo(MetadataToken typeDef, MiniAssembly assembly, String typeName, String nameSpace) 108internal TypeInfo(MetadataToken typeDef, MiniAssembly assembly, MiniModule module, String typeName, String nameSpace, bool isGeneric) 134internal TypeInfo(MetadataToken typeRefToken, MiniAssembly referencingAssembly, bool disambiguatingJunkForTypeRefOverload) 146MetadataToken assemblyRef = MetaData.ReadMetadataToken(MDTables.Encodings.ResolutionScope); 207_mdToken = (MetadataToken) info.GetValue(MDTokenFieldName, typeof(MetadataToken)); 435MetadataToken baseClass = peFile.MetaData.ReadMetadataToken(MDTables.Encodings.TypeDefOrRef); 440private TypeInfo TypeInfoFromTypeDefOrRef(MetadataToken token) 495MetadataToken baseClass = MetaData.ReadMetadataToken(MDTables.Encodings.TypeDefOrRef); // Base class 520MetadataToken method = new MetadataToken(MDTables.Tables.MethodDef, i); 680MetadataToken token = new MetadataToken(mapToTable[tableCode], index); 758private bool ImplementsHelper(PEFileReader peFile, MetadataToken typeDefToken, TypeInfo ifaceType) 776MetadataToken interfaceToken = mdScope.ReadMetadataToken(MDTables.Encodings.TypeDefOrRef); 785MetadataToken resolutionScope = mdScope.ReadMetadataToken(MDTables.Encodings.ResolutionScope); 835internal TypeInfo TypeRefToTypeDef(MetadataToken typeRef, bool throwOnError) 843MetadataToken resolutionScope = thisMetaData.ReadMetadataToken(MDTables.Encodings.ResolutionScope); 900MetadataToken interfaceToken = mdScope.ReadMetadataToken(MDTables.Encodings.TypeDefOrRef); 961MetadataToken targetType = metaData.ReadMetadataToken(MDTables.Encodings.HasCustomAttribute); 962MetadataToken caType = metaData.ReadMetadataToken(MDTables.Encodings.CustomAttributeType); 980MetadataToken customAttributeType = metaData.ReadMetadataToken(MDTables.Encodings.MemberRefParent); 984MetadataToken resolutionScope = metaData.ReadMetadataToken(MDTables.Encodings.ResolutionScope);