23 references to TypeNameParserHelpers
System.Reflection.Metadata (23)
System\Reflection\Metadata\TypeName.cs (22)
26/// Negative value is modifier encoded using constants defined in <see cref="TypeNameParserHelpers"/>. 120TypeNameParserHelpers.ThrowInvalidOperation_NotNestedType(); 160_fullName = TypeNameParserHelpers.GetGenericTypeFullName(GetGenericTypeDefinition().FullName.AsSpan(), 171_fullName = TypeNameParserHelpers.GetRankOrModifierStringRepresentation(_rankOrModifier, ref builder); 193public bool IsArray => _rankOrModifier == TypeNameParserHelpers.SZArray || _rankOrModifier > 0; 226public bool IsByRef => _rankOrModifier == TypeNameParserHelpers.ByRef; 237public bool IsSZArray => _rankOrModifier == TypeNameParserHelpers.SZArray; 243public bool IsPointer => _rankOrModifier == TypeNameParserHelpers.Pointer; 265_name = TypeNameParserHelpers.GetName(GetGenericTypeDefinition().FullName.AsSpan()).ToString(); 271_name = TypeNameParserHelpers.GetRankOrModifierStringRepresentation(_rankOrModifier, ref builder); 275_name = TypeNameParserHelpers.GetName(_fullName.AsSpan(0, _nestedNameLength)).ToString(); 279_name = TypeNameParserHelpers.GetName(FullName.AsSpan()).ToString(); 357TypeNameParserHelpers.ThrowInvalidOperation_NoElement(); 374TypeNameParserHelpers.ThrowInvalidOperation_NotGenericType(); 411if (!(_rankOrModifier == TypeNameParserHelpers.SZArray || _rankOrModifier > 0)) 413TypeNameParserHelpers.ThrowInvalidOperation_HasToBeArrayClass(); 416return _rankOrModifier == TypeNameParserHelpers.SZArray ? 1 : _rankOrModifier; 456TypeNameParserHelpers.ThrowInvalidOperation_NotSimpleName(FullName); 479public TypeName MakeSZArrayTypeName() => MakeElementTypeName(TypeNameParserHelpers.SZArray); 502public TypeName MakePointerTypeName() => MakeElementTypeName(TypeNameParserHelpers.Pointer); 510public TypeName MakeByRefTypeName() => MakeElementTypeName(TypeNameParserHelpers.ByRef); 525TypeNameParserHelpers.ThrowInvalidOperation_NotSimpleName(FullName);
System\Reflection\Metadata\TypeNameParser.cs (1)
11using static System.Reflection.Metadata.TypeNameParserHelpers;