7 overrides of MetadataName
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
467
public override string
MetadataName
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
428
public override string
MetadataName
Symbols\NamedTypeSymbol.cs (1)
505
public override string
MetadataName
Symbols\Source\SourceComplexParameterSymbol.cs (1)
424
public override string
MetadataName
Symbols\Source\SourcePropertySymbolBase.cs (1)
517
public override string
MetadataName
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
119
public sealed override string
MetadataName
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
176
public override string
MetadataName
129 references to MetadataName
Microsoft.CodeAnalysis.CSharp (45)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
278
string metadataName = symbol.
MetadataName
;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (6)
563
Debug.Assert(!string.IsNullOrEmpty(sourceMember.
MetadataName
));
566
if (otherMembersByName.TryGetValue(sourceMember.
MetadataName
, out var otherMembers))
662
Debug.Assert(StringOrdinalComparer.Equals(@namespace.
MetadataName
, other.
MetadataName
));
729
Debug.Assert(StringOrdinalComparer.Equals(property.
MetadataName
, other.
MetadataName
));
Emitter\Model\EventSymbolAdapter.cs (1)
157
return AdaptedEventSymbol.
MetadataName
;
Emitter\Model\FieldSymbolAdapter.cs (1)
132
return AdaptedFieldSymbol.
MetadataName
;
Emitter\Model\MethodSymbolAdapter.cs (1)
137
get { return AdaptedMethodSymbol.
MetadataName
; }
Emitter\Model\ModuleReference.cs (1)
41
return _underlyingModule.
MetadataName
;
Emitter\Model\NamespaceSymbolAdapter.cs (1)
21
string Cci.INamedEntity.Name => AdaptedNamespaceSymbol.
MetadataName
;
Emitter\Model\ParameterSymbolAdapter.cs (1)
206
get { return AdaptedParameterSymbol.
MetadataName
; }
Emitter\Model\PEAssemblyBuilder.cs (1)
82
_metadataName = (emitOptions.OutputNameOverride == null) ? sourceAssembly.
MetadataName
: FileNameUtilities.ChangeExtension(emitOptions.OutputNameOverride, extension: null);
Emitter\Model\PEModuleBuilder.cs (1)
91
var specifiedName = sourceModule.
MetadataName
;
Emitter\Model\PropertySymbolAdapter.cs (1)
287
return AdaptedPropertySymbol.
MetadataName
;
Emitter\Model\TypeMemberReference.cs (1)
28
return UnderlyingSymbol.
MetadataName
;
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
206
get { return AdaptedTypeParameterSymbol.
MetadataName
; }
Emitter\NoPia\EmbeddedEvent.cs (3)
61
return UnderlyingEvent.AdaptedEventSymbol.
MetadataName
;
119
EmbeddedTypesManager.Error(diagnostics, ErrorCode.ERR_MissingMethodOnSourceInterface, syntaxNodeOpt, sourceInterface, UnderlyingEvent.AdaptedEventSymbol.
MetadataName
, UnderlyingEvent.AdaptedEventSymbol);
131
foreach (Symbol m in sourceInterface.GetMembers(UnderlyingEvent.AdaptedEventSymbol.
MetadataName
))
Emitter\NoPia\EmbeddedField.cs (1)
131
return UnderlyingField.AdaptedFieldSymbol.
MetadataName
;
Emitter\NoPia\EmbeddedMethod.cs (1)
180
get { return UnderlyingMethod.AdaptedMethodSymbol.
MetadataName
; }
Emitter\NoPia\EmbeddedParameter.cs (1)
99
get { return UnderlyingParameter.AdaptedParameterSymbol.
MetadataName
; }
Emitter\NoPia\EmbeddedProperty.cs (1)
68
return UnderlyingProperty.AdaptedPropertySymbol.
MetadataName
;
Emitter\NoPia\EmbeddedTypeParameter.cs (1)
66
get { return UnderlyingTypeParameter.AdaptedTypeParameterSymbol.
MetadataName
; }
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
310
BoundExpression eventInfo = _factory.New(ctor, _factory.Typeof(node.Event.ContainingType, ctor.Parameters[0].Type), _factory.Literal(node.Event.
MetadataName
));
Lowering\LocalRewriter\LocalRewriter_Range.cs (3)
182
Debug.Assert(constructionMethod.
MetadataName
== "StartAt" ||
183
constructionMethod.
MetadataName
== "EndAt");
192
Debug.Assert(constructionMethod.
MetadataName
== "get_All");
Symbols\MemberSymbolExtensions.cs (1)
936
return member.IsIndexer() ? member.
MetadataName
:
Symbols\PublicModel\Symbol.cs (1)
201
string ISymbol.MetadataName => UnderlyingSymbol.
MetadataName
;
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
184
int gapSize = isInterface ? Microsoft.CodeAnalysis.ModuleExtensions.GetVTableGapSize(method.
MetadataName
) : 0;
Symbols\Source\SourceComplexParameterSymbol.cs (3)
433
return base.
MetadataName
;
439
return base.
MetadataName
;
442
return definition.Parameters[this.Ordinal].
MetadataName
;
Symbols\Source\SourceMemberContainerSymbol.cs (3)
2316
string indexerName = indexer.
MetadataName
;
2341
string indexerName = indexer.
MetadataName
;
4364
string propertyName = propertySymbol.IsIndexer ? propertySymbol.
MetadataName
: propertySymbol.Name;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1662
ModuleExtensions.GetVTableGapSize(this.
MetadataName
) > 0;
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1737
string defaultMemberName = this.Indexers.First().
MetadataName
; // UNDONE: IndexerNameAttribute
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
700
: GetAccessorName(explicitlyImplementedPropertyOpt.
MetadataName
,
Symbols\Symbol.cs (1)
229
string ISymbolInternal.MetadataName => this.
MetadataName
;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
121
get { return _underlyingParameter.
MetadataName
; }
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
180
return _underlyingProperty.
MetadataName
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
BreakingChanges.cs (1)
167
Assert.Equal("MonthInfoIndexer", indexer.
MetadataName
);
CodeGen\CodeGenDynamicTests.cs (1)
691
switch (member.
MetadataName
)
CodeGen\CodeGenExplicitImplementationTests.cs (1)
1004
AssertEx.All(classCMembers.Select(m => m.
MetadataName
), metadataName => metadataName == WellKnownMemberNames.InstanceConstructorName || metadataName.StartsWith("Q::I.", StringComparison.Ordinal));
CodeGen\CodeGenTupleTest.cs (2)
25336
Assert.Equal(libWithVTRef.Display, tuple2.ContainingAssembly.
MetadataName
.ToString());
25342
Assert.Equal(libWithVTRef.Display, tuple3.ContainingAssembly.
MetadataName
.ToString());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\SymbolMatcherTests.cs (1)
964
Assert.Equal("I<System.Int32,System.Boolean>.Item", ((PropertySymbol)mappedProperty.GetInternalSymbol()).
MetadataName
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\AttributeTests.cs (1)
8646
Assert.Equal("ItemX", indexer.
MetadataName
); //First one wins.
PartialEventsAndConstructorsTests.cs (1)
1718
Assert.Equal(expectedMetadataName, accessor.
MetadataName
);
Semantics\PrimaryConstructorTests.cs (3)
19715
Assert.Equal("p1", comp.GetTypeByMetadataName("C1").Indexers.Single().
MetadataName
);
19745
Assert.Equal("p1", comp.GetTypeByMetadataName("C1").Indexers.Single().
MetadataName
);
19766
Assert.Equal("p1", comp.GetTypeByMetadataName("C1").Indexers.Single().
MetadataName
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\NullableContextTests.cs (1)
2255
key is Symbol symbol ? symbol.
MetadataName
: ((SyntaxNode)key).ToString();
Semantics\NullableReferenceTypesTests.cs (10)
100705
Assert.Equal("I<System.Object>.F1", af1.
MetadataName
);
100736
Assert.Equal("I<System.Object>.F1", bf1.
MetadataName
);
100800
Assert.Equal("I<A>.F1", af1.
MetadataName
);
100829
Assert.Equal("I<A>.F1", bf1.
MetadataName
);
100889
Assert.Equal("I<System.Object>.F1", af1.
MetadataName
);
100915
Assert.Equal("I<System.Object>.F1", bf1.
MetadataName
);
101075
Assert.Equal("I<System.Object>.F1", af1.
MetadataName
);
101101
Assert.Equal("I<System.Object>.F1", bf1.
MetadataName
);
101158
Assert.Equal("I<System.Object,B>.F1", af1.
MetadataName
);
101183
Assert.Equal("I<System.Object,B>.F1", bf1.
MetadataName
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (61)
Symbols\AnonymousTypesSemanticsTests.cs (1)
1069
Assert.Equal(metadataName, type.
MetadataName
);
Symbols\IndexerTests.cs (40)
332
Assert.NotEqual(interface1Indexer.
MetadataName
, interface2Indexer.
MetadataName
);
333
Assert.NotEqual(interface1Indexer.
MetadataName
, classIndexer.
MetadataName
);
334
Assert.NotEqual(interface2Indexer.
MetadataName
, classIndexer.
MetadataName
);
414
Assert.NotEqual(interface1Indexer.
MetadataName
, interface2Indexer.
MetadataName
);
415
Assert.NotEqual(interface1Indexer.
MetadataName
, classIndexer.
MetadataName
);
416
Assert.NotEqual(interface2Indexer.
MetadataName
, classIndexer.
MetadataName
);
623
Assert.NotEqual(baseIndexer.
MetadataName
, derivedIndexer.
MetadataName
);
680
Assert.NotEqual(baseIndexer.
MetadataName
, derivedIndexer.
MetadataName
);
749
Assert.NotEqual(baseIndexers[0].
MetadataName
, baseIndexers[1].
MetadataName
);
750
Assert.NotEqual(baseIndexers[0].
MetadataName
, derivedIndexer.
MetadataName
);
751
Assert.NotEqual(baseIndexers[1].
MetadataName
, derivedIndexer.
MetadataName
);
820
Assert.NotEqual(baseIndexers[0].
MetadataName
, baseIndexers[1].
MetadataName
);
821
Assert.NotEqual(baseIndexers[0].
MetadataName
, derivedIndexer.
MetadataName
);
822
Assert.NotEqual(baseIndexers[1].
MetadataName
, derivedIndexer.
MetadataName
);
1438
Assert.Equal("A", indexer.
MetadataName
);
1440
Assert.Equal("get_A", indexer.GetMethod.
MetadataName
);
1442
Assert.Equal("set_A", indexer.SetMethod.
MetadataName
);
1462
Assert.Equal("@indexer", indexer.
MetadataName
);
1463
Assert.Equal("get_@indexer", indexer.GetMethod.
MetadataName
);
1464
Assert.Equal("set_@indexer", indexer.SetMethod.
MetadataName
);
1516
Assert.True(derivedType.Indexers.All(i => i.
MetadataName
== "A"));
1576
Assert.Equal("X", get_XB.AssociatedSymbol.
MetadataName
);
1577
Assert.Equal("X", get_XC.AssociatedSymbol.
MetadataName
);
1600
Assert.Equal("X", classA.Indexers.Single().
MetadataName
);
2131
Assert.Equal("A", indexer.
MetadataName
);
2841
Assert.Equal("Item", idxSymbol.
MetadataName
);
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (3)
375
Assert.Equal("With Spaces", assembly.
MetadataName
);
392
Assert.Equal("With Spaces", assembly.
MetadataName
);
410
Assert.Equal("With Spaces.netmodule", module.
MetadataName
);
Symbols\PartialPropertiesTests.cs (1)
797
Assert.Equal(accessor.
MetadataName
, importData.EntryPointName); // e.g. 'get_P'
Symbols\Source\FileModifierTests.cs (15)
746
AssertEx.Equal("<MyFile>F5E7157F91336401EED4848664C7CEB8A5E156C0D713F4211A61BDB8932B19EF2__C`1", c.
MetadataName
);
779
AssertEx.Equal(expectedMetadataName, c.
MetadataName
);
810
AssertEx.Equal("<MyGeneratedFile_g>F18307E6C553D2E6465CEA162655C06E2BB2896889519559EB1EE5FA53513F0E8__C", c.
MetadataName
);
892
AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.
MetadataName
);
939
AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", member.
MetadataName
);
974
AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C`1", classC.
MetadataName
);
1004
AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.
MetadataName
);
1093
Assert.Matches(expectedRegexPattern: @"<My_File>F[\w\d]{64}__C", sourceFileTypeSymbol.
MetadataName
);
1099
Assert.Equal(sourceFileTypeSymbol.
MetadataName
, expectedSymbol.MetadataName);
1130
Assert.Equal("<_>F<no checksum>__C", classC.
MetadataName
);
1154
AssertEx.Equal("<My_File>FA818559F9E8E4AF40425A1819866C71357DE9017B4B7EFE1D34D9F48C0539B6E__C", c.
MetadataName
);
1214
AssertEx.Equal(firstMetadataName, expectedSymbol.
MetadataName
);
1222
AssertEx.Equal(secondMetadataName, expectedSymbol.
MetadataName
);
4238
AssertEx.Equal("<file1>F96B1D9CB33A43D51528FE81EDAFE5AE31358FE749929AC76B76C64B60DEF129D__C", sourceMember.
MetadataName
);
4253
Assert.Equal("<file1>F96B1D9CB33A43D51528FE81EDAFE5AE31358FE749929AC76B76C64B60DEF129D__C", metadataMember.
MetadataName
);
Symbols\SymbolErrorTests.cs (1)
4926
Assert.Equal("IA.Item", indexer.
MetadataName
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
SymbolUtilities.cs (1)
63
T member = type.GetMembers(WellKnownMemberNames.Indexer).Where(i => i.
MetadataName
== name).Single() as T;