48 references to MetadataTokenType
System.Private.CoreLib (48)
src\System\Reflection\Associates.cs (1)
139
scope.Enum(
MetadataTokenType
.MethodDef, mdPropEvent, out MetadataEnumResult associatesData);
src\System\Reflection\Emit\DynamicILGenerator.cs (9)
986
return m_tokens.Count - 1 | (int)
MetadataTokenType
.MemberRef;
1024
return m_tokens.Count - 1 | (int)
MetadataTokenType
.MethodDef;
1029
return m_tokens.Count - 1 | (int)
MetadataTokenType
.MethodDef;
1034
return m_tokens.Count - 1 | (int)
MetadataTokenType
.MethodDef;
1039
return m_tokens.Count - 1 | (int)
MetadataTokenType
.FieldDef;
1044
return m_tokens.Count - 1 | (int)
MetadataTokenType
.FieldDef;
1049
return m_tokens.Count - 1 | (int)
MetadataTokenType
.TypeDef;
1054
return m_tokens.Count - 1 | (int)
MetadataTokenType
.String;
1059
return m_tokens.Count - 1 | (int)
MetadataTokenType
.Signature;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
343
m_tdType = ((int)
MetadataTokenType
.TypeDef);
src\System\Reflection\Emit\SignatureHelper.cs (4)
505
MetadataTokenType
type = (
MetadataTokenType
)(token & unchecked((int)0xFF000000)); // This is TypeFromToken;
518
if (type ==
MetadataTokenType
.TypeRef)
523
else if (type ==
MetadataTokenType
.TypeSpec)
src\System\Reflection\MdImport.cs (25)
138
public static bool IsTokenOfType(int token, params
MetadataTokenType
[] types)
154
public
MetadataTokenType
TokenType => (
MetadataTokenType
)(Value & 0xFF000000);
155
public bool IsTypeRef => TokenType ==
MetadataTokenType
.TypeRef;
156
public bool IsTypeDef => TokenType ==
MetadataTokenType
.TypeDef;
157
public bool IsFieldDef => TokenType ==
MetadataTokenType
.FieldDef;
158
public bool IsMethodDef => TokenType ==
MetadataTokenType
.MethodDef;
159
public bool IsMemberRef => TokenType ==
MetadataTokenType
.MemberRef;
160
public bool IsEvent => TokenType ==
MetadataTokenType
.Event;
161
public bool IsProperty => TokenType ==
MetadataTokenType
.Property;
162
public bool IsParamDef => TokenType ==
MetadataTokenType
.ParamDef;
163
public bool IsTypeSpec => TokenType ==
MetadataTokenType
.TypeSpec;
164
public bool IsMethodSpec => TokenType ==
MetadataTokenType
.MethodSpec;
165
public bool IsString => TokenType ==
MetadataTokenType
.String;
166
public bool IsSignature => TokenType ==
MetadataTokenType
.Signature;
167
public bool IsModule => TokenType ==
MetadataTokenType
.Module;
168
public bool IsAssembly => TokenType ==
MetadataTokenType
.Assembly;
169
public bool IsGenericPar => TokenType ==
MetadataTokenType
.GenericPar;
320
public unsafe void Enum(
MetadataTokenType
type, int parent, out MetadataEnumResult result)
333
Enum(
MetadataTokenType
.TypeDef, mdTypeDef, out result);
338
Enum(
MetadataTokenType
.CustomAttribute, mdToken, out result);
343
Enum(
MetadataTokenType
.ParamDef, mdMethodDef, out result);
348
Enum(
MetadataTokenType
.FieldDef, mdTypeDef, out result);
353
Enum(
MetadataTokenType
.Property, mdTypeDef, out result);
358
Enum(
MetadataTokenType
.Event, mdTypeDef, out result);
src\System\Reflection\RuntimeAssembly.cs (1)
739
scope.Enum(
MetadataTokenType
.ExportedType, 0, out MetadataEnumResult enumResult);
src\System\Reflection\RuntimeParameterInfo.cs (4)
175
m_tkParamDef = MdToken.IsNullToken(accessor.MetadataToken) ? (int)
MetadataTokenType
.ParamDef : accessor.MetadataToken;
185
Debug.Assert(MdToken.IsNullToken(tkParamDef) || MdToken.IsTokenOfType(tkParamDef,
MetadataTokenType
.ParamDef));
190
m_tkParamDef = MdToken.IsNullToken(tkParamDef) ? (int)
MetadataTokenType
.ParamDef : tkParamDef;
208
m_tkParamDef = (int)
MetadataTokenType
.ParamDef;
src\System\RuntimeType.CoreCLR.cs (3)
943
Debug.Assert(MdToken.IsTokenOfType(tkField,
MetadataTokenType
.FieldDef));
1189
Debug.Assert(MdToken.IsTokenOfType(tkEvent,
MetadataTokenType
.Event));
1308
Debug.Assert(MdToken.IsTokenOfType(tkProperty,
MetadataTokenType
.Property));