Base:
property
Name
Microsoft.CodeAnalysis.CSharp.Symbol.Name
Implemented interface member:
property
Name
Microsoft.CodeAnalysis.Symbols.ISymbolInternal.Name
13 overrides of Name
Microsoft.CodeAnalysis.CSharp (13)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
69
public sealed override string
Name
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
147
public sealed override string
Name
Symbols\ErrorTypeSymbol.cs (1)
297
public override string
Name
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2081
public override string
Name
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1079
public override string
Name
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
137
public override string
Name
=> "Enumerator";
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
850
public override string
Name
{ get; }
Symbols\Synthesized\SynthesizedContainer.cs (1)
82
public sealed override string
Name
{ get; }
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
67
public override string
Name
=> _name;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
95
public override string
Name
=> TypeName;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
54
public override string
Name
{ get; }
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
47
public override string
Name
=> _privateImplementationDetails.Name;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
68
public override string
Name
61 references to Name
Microsoft.CodeAnalysis.CSharp (61)
Binder\Binder_Attributes.cs (1)
201
attributeTypeForBinding.
Name
,
Binder\Binder_Conversions.cs (4)
1118
collectionCreation = binder.BindClassCreationExpression(syntax, namedType.
Name
, syntax, namedType, analyzedArguments, @this._diagnostics);
1319
constructedListType.
Name
,
1733
namedType.
Name
,
2786
instantiatedType.
Name
,
Binder\Binder_Crefs.cs (2)
620
if (containerType.
Name
== memberName && (hasParameterList || containerType.Arity == 0 || !TypeSymbol.Equals(this.ContainingType, containerType.OriginalDefinition, TypeCompareKind.ConsiderEverything2)))
632
if ((object?)binderContainingType != null && memberName == binderContainingType.
Name
)
Binder\Binder_Expressions.cs (2)
5737
var creation = BindClassCreationExpression(node, type.
Name
, node, type, analyzedArguments, diagnostics);
7150
coClassType.
Name
,
Binder\Binder_InterpolatedString.cs (1)
804
diagnostics.Add(ErrorCode.ERR_InterpolatedStringHandlerCreationCannotUseDynamic, syntax.Location, interpolatedStringHandlerType.
Name
);
Binder\Binder_Operators.cs (1)
4996
GetSpecialType(SpecialType.System_Object, diagnostics, node).
Name
// a pretty way of getting the string "Object"
Binder\Binder_Query.cs (1)
1033
var result = BindClassCreationExpression(node, toCreate.
Name
, node, toCreate, analyzedArguments, diagnostics);
Binder\DecisionDagBuilder.cs (1)
502
RoslynDebug.Assert(iTupleType.
Name
== "ITuple");
Binder\LockBinder.cs (1)
91
if (scopeType is not NamedTypeSymbol {
Name
: WellKnownMemberNames.LockScopeTypeName, Arity: 0, IsValueType: true, IsRefLikeType: true, DeclaredAccessibility: Accessibility.Public } ||
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3261
Name
: "IEquatable",
BoundTree\BoundInlineArrayAccess.cs (1)
27
Name
: "Index" or "Range",
CodeGen\EmitExpression.cs (1)
2526
if (originalDef.ContainingType.
Name
== NamedTypeSymbol.ValueTupleTypeName &&
Compiler\ClsComplianceChecker.cs (1)
350
this.AddDiagnostic(ErrorCode.ERR_AttributeNotOnAccessor, attributeLocation, attribute.AttributeClass.
Name
, attributeUsage.GetValidTargetsErrorArgument());
Compiler\MethodBodySynthesizer.cs (1)
245
Debug.Assert(fieldType.
Name
== "EventRegistrationTokenTable");
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
184
builder.Append(symbol.IsExtension ? symbol.ExtensionGroupingName : symbol.
Name
);
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
803
string unsuffixedName = AdaptedNamedTypeSymbol.
Name
;
FlowAnalysis\NullableWalker.cs (2)
5208
Debug.Assert(namedType.
Name
== "Span");
5215
Debug.Assert(namedType.
Name
== "Span");
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
238
Debug.Assert(fieldType.
Name
== "EventRegistrationTokenTable");
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
1112
startOverload = containingType.
Name
switch
Symbols\Attributes\SourceAttributeData.cs (1)
477
if (!attributeClass.
Name
.Equals(typeName))
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (2)
212
&& modifierType.
Name
!= "CallConv"
213
&& modifierType.
Name
.StartsWith("CallConv", StringComparison.Ordinal)
Symbols\NamedTypeSymbol.cs (3)
638
? MetadataHelpers.ComposeAritySuffixedMetadataName(
Name
, Arity, fileIdentifier)
639
:
Name
;
2019
Name
== ValueTupleTypeName &&
Symbols\Source\SourceAssemblySymbol.cs (6)
1088
if (x.Arity == y.Arity && x.
Name
== y.
Name
)
1093
if (x.Arity != 0 || !x.ContainingNamespace.IsGlobalNamespace || x.
Name
!= "<Module>")
1130
int result = String.CompareOrdinal(x.
Name
, y.
Name
);
1265
diagnostics.Add(ErrorCode.ERR_DuplicateAttributeInNetModule, NoLocation.Singleton, attribute.AttributeClass.
Name
, netModuleName);
Symbols\Source\SourceConstructorSymbol.cs (1)
169
containingType.
Name
== syntax.Identifier.ValueText)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
66
ContainingType.
Name
== ((ConstructorDeclarationSyntax)this.SyntaxNode).Identifier.ValueText)
Symbols\Source\SourceMemberContainerSymbol.cs (6)
1487
symbols.ToDictionary(s => s.
Name
.AsMemory(), ReadOnlyMemoryOfCharComparer.Instance) :
1515
checkContainingTypeName(member, containingType.
Name
, diagnostics);
1518
if (this.ExtensionParameter is { Type: NamedTypeSymbol {
Name
: var extendedTypeName } })
2333
((ConstructorDeclarationSyntax)constructor.SyntaxRef.GetSyntax()).Identifier.ValueText != method1.ContainingType.
Name
)
2378
"~" + method1.ContainingType.
Name
:
2379
(method1.IsConstructor() ? method1.ContainingType.
Name
: method1.Name);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (5)
201
if (namedType.
Name
== "void" && namedType.IsTopLevelType() && namedType.ContainingNamespace.IsGlobalNamespace)
535
appendIdentifier(namedType.
Name
, builder);
567
builder.Append(containingType.
Name
);
777
Debug.Assert(callingConventionTypes[i].
Name
.StartsWith("CallConv", StringComparison.Ordinal));
779
builder.Append(callingConventionTypes[i].
Name
["CallConv".Length..]);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
232
diagnostics.Add(ErrorCode.ERR_ExtensionMethodsDecl, _location, ContainingType.
Name
);
Symbols\SubstitutedNamedTypeSymbol.cs (1)
197
return new List<string>(GetTypeMembersUnordered().Select(s => s.
Name
).Distinct());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
949
=> GetTypeMembers().WhereAsArray(static (type, name) => type.
Name
.AsSpan().SequenceEqual(name.Span), name);
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
66
block.Add(makeAppendString(F, builderLocal, ContainingType.
Name
));
Symbols\TypeSymbolExtensions.cs (6)
521
switch (type.
Name
)
1454
Name
: "Span",
1467
Name
: "ReadOnlySpan",
2220
return typeSymbol is NamedTypeSymbol {
Name
: WellKnownMemberNames.LockTypeName, Arity: 0, ContainingType: null } &&
2228
Name
: "EmbeddedAttribute",
2264
return type is NamedTypeSymbol {
Name
: "INumberBase", IsInterface: true, Arity: 1, ContainingType: null } &&
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
72
return _underlyingType.
Name
;