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