11 instantiations of MetadataToken
System.Private.CoreLib (11)
src\System\Reflection\MdImport.cs (1)
136public static implicit operator MetadataToken(int token) => new MetadataToken(token);
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
621tkCtor = new MetadataToken(token);
src\System\Reflection\RuntimeModule.cs (9)
49MetadataToken tk = new MetadataToken(metadataToken); 78MetadataToken tk = new MetadataToken(metadataToken); 113MetadataToken tkDeclaringType = new MetadataToken(MetadataImport.GetParentToken(tk)); 116tkDeclaringType = new MetadataToken(MetadataImport.GetParentToken(tkDeclaringType)); 132MetadataToken tk = new MetadataToken(metadataToken); 162MetadataToken tk = new MetadataToken(metadataToken); 223MetadataToken tk = new MetadataToken(metadataToken); 253MetadataToken tk = new MetadataToken(metadataToken); 298MetadataToken tk = new MetadataToken(metadataToken);
44 references to MetadataToken
System.Private.CoreLib (44)
src\System\Reflection\Associates.cs (1)
45if (MetadataToken.IsNullToken(tkMethod))
src\System\Reflection\Emit\SignatureHelper.cs (4)
291Debug.Assert(!MetadataToken.IsNullToken(token)); 313Debug.Assert(!MetadataToken.IsNullToken(token)); 754Debug.Assert(!MetadataToken.IsNullToken(token)); 777Debug.Assert(!MetadataToken.IsNullToken(token));
src\System\Reflection\MdImport.cs (3)
135public static implicit operator int(MetadataToken token) => token.Value; 136public static implicit operator MetadataToken(int token) => new MetadataToken(token); 488public ConstArray GetMethodSignature(MetadataToken token)
src\System\Reflection\RuntimeAssembly.cs (2)
744MetadataToken mdtExternalType = enumResult[i]; 806private static partial void GetForwardedType(QCallAssembly assembly, MetadataToken mdtExternalType, ObjectHandleOnStack type);
src\System\Reflection\RuntimeCustomAttributeData.cs (2)
251private RuntimeCustomAttributeData(RuntimeModule scope, MetadataToken caCtorToken, in ConstArray blob) 617internal MetadataToken tkCtor;
src\System\Reflection\RuntimeExceptionHandlingClause.cs (1)
54if (!MetadataToken.IsNullToken(_catchMetadataToken))
src\System\Reflection\RuntimeModule.cs (8)
49MetadataToken tk = new MetadataToken(metadataToken); 78MetadataToken tk = new MetadataToken(metadataToken); 113MetadataToken tkDeclaringType = new MetadataToken(MetadataImport.GetParentToken(tk)); 132MetadataToken tk = new MetadataToken(metadataToken); 162MetadataToken tk = new MetadataToken(metadataToken); 223MetadataToken tk = new MetadataToken(metadataToken); 253MetadataToken tk = new MetadataToken(metadataToken); 298MetadataToken tk = new MetadataToken(metadataToken);
src\System\Reflection\RuntimeParameterInfo.cs (12)
7using MdToken = System.Reflection.MetadataToken; 49if (!MdToken.IsNullToken(tkMethodDef)) 175m_tkParamDef = MdToken.IsNullToken(accessor.MetadataToken) ? (int)MetadataTokenType.ParamDef : accessor.MetadataToken; 184Debug.Assert(MdToken.IsNullToken(tkParamDef) == scope.Equals((MetadataImport)default)); 185Debug.Assert(MdToken.IsNullToken(tkParamDef) || MdToken.IsTokenOfType(tkParamDef, MetadataTokenType.ParamDef)); 190m_tkParamDef = MdToken.IsNullToken(tkParamDef) ? (int)MetadataTokenType.ParamDef : tkParamDef; 244if (!MdToken.IsNullToken(m_tkParamDef)) 337if (m_noDefaultValue || MdToken.IsNullToken(m_tkParamDef)) 457if (MdToken.IsNullToken(m_tkParamDef)) 470if (MdToken.IsNullToken(m_tkParamDef)) 480if (MdToken.IsNullToken(m_tkParamDef))
src\System\RuntimeType.CoreCLR.cs (11)
16using MdToken = System.Reflection.MetadataToken; 932if (MdToken.IsNullToken(tkDeclaringType)) 943Debug.Assert(MdToken.IsTokenOfType(tkField, MetadataTokenType.FieldDef)); 944Debug.Assert(!MdToken.IsNullToken(tkField)); 1101if (MdToken.IsNullToken(tkEnclosingType)) 1176if (MdToken.IsNullToken(tkDeclaringType)) 1188Debug.Assert(!MdToken.IsNullToken(tkEvent)); 1189Debug.Assert(MdToken.IsTokenOfType(tkEvent, MetadataTokenType.Event)); 1290if (MdToken.IsNullToken(tkDeclaringType)) 1307Debug.Assert(!MdToken.IsNullToken(tkProperty)); 1308Debug.Assert(MdToken.IsTokenOfType(tkProperty, MetadataTokenType.Property));