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