16 instantiations of MetadataToken
mscorlib (16)
system\reflection\customattribute.cs (6)
1937
MetadataToken tkParent = new
MetadataToken
();
1941
tkParent = new
MetadataToken
(scope.GetParentToken(decoratedToken));
1942
tkParent = new
MetadataToken
(scope.GetParentToken(tkParent));
1946
tkParent = new
MetadataToken
(scope.GetParentToken(decoratedToken));
1954
tkParent = new
MetadataToken
(scope.GetParentToken(decoratedToken));
1958
tkParent = new
MetadataToken
(scope.GetParentToken(tkParent));
system\reflection\mdimport.cs (1)
203
public static implicit operator MetadataToken(int token) { return new
MetadataToken
(token); }
system\reflection\module.cs (9)
668
MetadataToken tk = new
MetadataToken
(metadataToken);
695
MetadataToken tk = new
MetadataToken
(metadataToken);
727
MetadataToken tkDeclaringType = new
MetadataToken
(MetadataImport.GetParentToken(tk));
730
tkDeclaringType = new
MetadataToken
(MetadataImport.GetParentToken(tkDeclaringType));
746
MetadataToken tk = new
MetadataToken
(metadataToken);
778
MetadataToken tk = new
MetadataToken
(metadataToken);
833
MetadataToken tk = new
MetadataToken
(metadataToken);
866
MetadataToken tk = new
MetadataToken
(metadataToken);
911
MetadataToken tk = new
MetadataToken
(metadataToken);
48 references to MetadataToken
mscorlib (48)
system\reflection\assembly.cs (2)
1291
Contract.Assert(((
MetadataToken
)invocableAttribute.MetadataToken).IsTypeDef);
1297
Contract.Assert(((
MetadataToken
)token).IsMethodDef);
system\reflection\Associates.cs (1)
46
if (
MetadataToken
.IsNullToken(tkMethod))
system\reflection\ConstructorInfo.cs (1)
190
if (System.Reflection.
MetadataToken
.IsNullToken(ctorToken) ||
system\reflection\customattribute.cs (4)
982
internal
MetadataToken
tkCtor;
1631
Contract.Assert(!
MetadataToken
.IsNullToken(attributeCtorToken));
1852
MetadataToken
decoratedToken,
1937
MetadataToken
tkParent = new MetadataToken();
system\reflection\emit\signaturehelper.cs (2)
331
Contract.Assert(!
MetadataToken
.IsNullToken(token));
354
Contract.Assert(!
MetadataToken
.IsNullToken(token));
system\reflection\fieldinfo.cs (1)
421
if (System.Reflection.
MetadataToken
.IsNullToken(ctorToken) ||
system\reflection\mdimport.cs (3)
202
public static implicit operator int(
MetadataToken
token) { return token.Value; }
203
public static implicit operator
MetadataToken
(int token) { return new MetadataToken(token); }
572
public ConstArray GetMethodSignature(
MetadataToken
token)
system\reflection\methodbody.cs (1)
73
if (!
MetadataToken
.IsNullToken(m_catchMetadataToken))
system\reflection\methodinfo.cs (1)
156
if (System.Reflection.
MetadataToken
.IsNullToken(ctorToken) ||
system\reflection\module.cs (8)
668
MetadataToken
tk = new MetadataToken(metadataToken);
695
MetadataToken
tk = new MetadataToken(metadataToken);
727
MetadataToken
tkDeclaringType = new MetadataToken(MetadataImport.GetParentToken(tk));
746
MetadataToken
tk = new MetadataToken(metadataToken);
778
MetadataToken
tk = new MetadataToken(metadataToken);
833
MetadataToken
tk = new MetadataToken(metadataToken);
866
MetadataToken
tk = new MetadataToken(metadataToken);
911
MetadataToken
tk = new MetadataToken(metadataToken);
system\reflection\parameterinfo.cs (12)
22
using MdToken = System.Reflection.
MetadataToken
;
300
if (!
MdToken
.IsNullToken(tkMethodDef))
468
m_tkParamDef =
MdToken
.IsNullToken(accessor.MetadataToken) ? (int)MetadataTokenType.ParamDef : accessor.MetadataToken;
477
Contract.Assert(
MdToken
.IsNullToken(tkParamDef) == scope.Equals(MetadataImport.EmptyImport));
478
Contract.Assert(
MdToken
.IsNullToken(tkParamDef) ||
MdToken
.IsTokenOfType(tkParamDef, MetadataTokenType.ParamDef));
483
m_tkParamDef =
MdToken
.IsNullToken(tkParamDef) ? (int)MetadataTokenType.ParamDef : tkParamDef;
536
if (!
MdToken
.IsNullToken(m_tkParamDef))
637
if (!
MdToken
.IsNullToken(m_tkParamDef))
731
if (
MdToken
.IsNullToken(m_tkParamDef))
743
if (
MdToken
.IsNullToken(m_tkParamDef))
761
if (
MdToken
.IsNullToken(m_tkParamDef))
system\rttype.cs (12)
41
using MdToken = System.Reflection.
MetadataToken
;
988
if (
MdToken
.IsNullToken(tkDeclaringType))
999
Contract.Assert(
MdToken
.IsTokenOfType(tkField, MetadataTokenType.FieldDef));
1000
Contract.Assert(!
MdToken
.IsNullToken(tkField));
1187
if (
MdToken
.IsNullToken(tkEnclosingType))
1265
if (
MdToken
.IsNullToken(tkDeclaringType))
1278
Contract.Assert(!
MdToken
.IsNullToken(tkEvent));
1279
Contract.Assert(
MdToken
.IsTokenOfType(tkEvent, MetadataTokenType.Event));
1371
if (
MdToken
.IsNullToken(tkDeclaringType))
1391
Contract.Assert(!
MdToken
.IsNullToken(tkProperty));
1392
Contract.Assert(
MdToken
.IsTokenOfType(tkProperty, MetadataTokenType.Property));
2685
if (System.Reflection.
MetadataToken
.IsNullToken(ctorToken) ||