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
"/>.
120
TypeNameParserHelpers
.ThrowInvalidOperation_NotNestedType();
160
_fullName =
TypeNameParserHelpers
.GetGenericTypeFullName(GetGenericTypeDefinition().FullName.AsSpan(),
171
_fullName =
TypeNameParserHelpers
.GetRankOrModifierStringRepresentation(_rankOrModifier, ref builder);
193
public bool IsArray => _rankOrModifier ==
TypeNameParserHelpers
.SZArray || _rankOrModifier > 0;
226
public bool IsByRef => _rankOrModifier ==
TypeNameParserHelpers
.ByRef;
237
public bool IsSZArray => _rankOrModifier ==
TypeNameParserHelpers
.SZArray;
243
public 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();
357
TypeNameParserHelpers
.ThrowInvalidOperation_NoElement();
374
TypeNameParserHelpers
.ThrowInvalidOperation_NotGenericType();
411
if (!(_rankOrModifier ==
TypeNameParserHelpers
.SZArray || _rankOrModifier > 0))
413
TypeNameParserHelpers
.ThrowInvalidOperation_HasToBeArrayClass();
416
return _rankOrModifier ==
TypeNameParserHelpers
.SZArray ? 1 : _rankOrModifier;
456
TypeNameParserHelpers
.ThrowInvalidOperation_NotSimpleName(FullName);
479
public TypeName MakeSZArrayTypeName() => MakeElementTypeName(
TypeNameParserHelpers
.SZArray);
502
public TypeName MakePointerTypeName() => MakeElementTypeName(
TypeNameParserHelpers
.Pointer);
510
public TypeName MakeByRefTypeName() => MakeElementTypeName(
TypeNameParserHelpers
.ByRef);
525
TypeNameParserHelpers
.ThrowInvalidOperation_NotSimpleName(FullName);
System\Reflection\Metadata\TypeNameParser.cs (1)
11
using static System.Reflection.Metadata.
TypeNameParserHelpers
;