49 references to MetadataTokenType
mscorlib (49)
system\reflection\assembly.cs (1)
1252
return token | (int)
MetadataTokenType
.MethodDef;
system\reflection\Associates.cs (1)
150
scope.Enum(
MetadataTokenType
.MethodDef, mdPropEvent, out associatesData);
system\reflection\emit\dynamicilgenerator.cs (9)
1208
return m_tokens.Count - 1 | (int)
MetadataTokenType
.MemberRef;
1248
return m_tokens.Count - 1 | (int)
MetadataTokenType
.MethodDef;
1253
return m_tokens.Count - 1 | (int)
MetadataTokenType
.MethodDef;
1258
return m_tokens.Count - 1 | (int)
MetadataTokenType
.MethodDef;
1263
return m_tokens.Count - 1 | (int)
MetadataTokenType
.FieldDef;
1268
return m_tokens.Count - 1 | (int)
MetadataTokenType
.FieldDef;
1273
return m_tokens.Count - 1 | (int)
MetadataTokenType
.TypeDef;
1278
return m_tokens.Count - 1 | (int)
MetadataTokenType
.String;
1283
return m_tokens.Count - 1 | (int)
MetadataTokenType
.Signature;
system\reflection\emit\signaturehelper.cs (4)
584
MetadataTokenType
type = (
MetadataTokenType
)(token & unchecked((int)0xFF000000)); //This is TypeFromToken;
597
if (type ==
MetadataTokenType
.TypeRef)
602
else if (type ==
MetadataTokenType
.TypeSpec)
system\reflection\emit\typebuilder.cs (1)
565
m_tdType = new TypeToken((int)
MetadataTokenType
.TypeDef);
system\reflection\mdimport.cs (25)
207
public static bool IsTokenOfType(int token, params
MetadataTokenType
[] types)
234
public
MetadataTokenType
TokenType { get { return (
MetadataTokenType
)(Value & 0xFF000000); } }
235
public bool IsTypeRef { get { return TokenType ==
MetadataTokenType
.TypeRef; } }
236
public bool IsTypeDef { get { return TokenType ==
MetadataTokenType
.TypeDef; } }
237
public bool IsFieldDef { get { return TokenType ==
MetadataTokenType
.FieldDef; } }
238
public bool IsMethodDef { get { return TokenType ==
MetadataTokenType
.MethodDef; } }
239
public bool IsMemberRef { get { return TokenType ==
MetadataTokenType
.MemberRef; } }
240
public bool IsEvent { get { return TokenType ==
MetadataTokenType
.Event; } }
241
public bool IsProperty { get { return TokenType ==
MetadataTokenType
.Property; } }
242
public bool IsParamDef { get { return TokenType ==
MetadataTokenType
.ParamDef; } }
243
public bool IsTypeSpec { get { return TokenType ==
MetadataTokenType
.TypeSpec; } }
244
public bool IsMethodSpec { get { return TokenType ==
MetadataTokenType
.MethodSpec; } }
245
public bool IsString { get { return TokenType ==
MetadataTokenType
.String; } }
246
public bool IsSignature { get { return TokenType ==
MetadataTokenType
.Signature; } }
247
public bool IsModule { get { return TokenType ==
MetadataTokenType
.Module; } }
248
public bool IsAssembly { get { return TokenType ==
MetadataTokenType
.Assembly; } }
249
public bool IsGenericPar { get { return TokenType ==
MetadataTokenType
.GenericPar; } }
363
public unsafe void Enum(
MetadataTokenType
type, int parent, out MetadataEnumResult result)
371
Enum(
MetadataTokenType
.TypeDef, mdTypeDef, out result);
377
Enum(
MetadataTokenType
.CustomAttribute, mdToken, out result);
383
Enum(
MetadataTokenType
.ParamDef, mdMethodDef, out result);
389
Enum(
MetadataTokenType
.FieldDef, mdTypeDef, out result);
395
Enum(
MetadataTokenType
.Property, mdTypeDef, out result);
401
Enum(
MetadataTokenType
.Event, mdTypeDef, out result);
system\reflection\parameterinfo.cs (5)
126
return (int)
MetadataTokenType
.ParamDef;
468
m_tkParamDef = MdToken.IsNullToken(accessor.MetadataToken) ? (int)
MetadataTokenType
.ParamDef : accessor.MetadataToken;
478
Contract.Assert(MdToken.IsNullToken(tkParamDef) || MdToken.IsTokenOfType(tkParamDef,
MetadataTokenType
.ParamDef));
483
m_tkParamDef = MdToken.IsNullToken(tkParamDef) ? (int)
MetadataTokenType
.ParamDef : tkParamDef;
501
m_tkParamDef = (int)
MetadataTokenType
.ParamDef;
system\rttype.cs (3)
999
Contract.Assert(MdToken.IsTokenOfType(tkField,
MetadataTokenType
.FieldDef));
1279
Contract.Assert(MdToken.IsTokenOfType(tkEvent,
MetadataTokenType
.Event));
1392
Contract.Assert(MdToken.IsTokenOfType(tkProperty,
MetadataTokenType
.Property));