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