3 overrides of Display
Microsoft.CodeAnalysis (3)
MetadataReference\CompilationReference.cs (1)
109public override string? Display
MetadataReference\PortableExecutableReference.cs (1)
35public override string? Display
MetadataReference\UnresolvedMetadataReference.cs (1)
23public override string Display
72 references to Display
Microsoft.AspNetCore.App.Analyzers.Test (1)
TestDiagnosticAnalyzer.cs (1)
157if (!project.MetadataReferences.Any(c => string.Equals(Path.GetFileNameWithoutExtension(c.Display), Path.GetFileNameWithoutExtension(assembly), StringComparison.OrdinalIgnoreCase)))
Microsoft.CodeAnalysis.CSharp (5)
Errors\MessageProvider.cs (3)
208reference.Display ?? identity.GetDisplayName(), 209equivalentReference.Display ?? equivalentIdentity.GetDisplayName()); 216reference.Display ?? identity.GetDisplayName());
Symbols\ReferenceManager.cs (2)
107diagnostics.Add(ErrorCode.ERR_AssemblySpecifiedForLinkAndRef, NoLocation.Singleton, duplicateReference.Display, primaryReference.Display);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\PreviewTests.cs (1)
77s_removedMetadataReferenceDisplayName = removedReference.Display;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenFunctionPointersTests.cs (4)
2537Assert.NotEqual(nopiaReference.Display, module.ReferencedAssemblies[0].Name); 2571Assert.NotEqual(nopiaReference.Display, module.ReferencedAssemblies[0].Name); 2607Assert.DoesNotContain(nopiaReference.Display, module.ReferencedAssemblies.Select(a => a.Name)); 2608Assert.Equal(intermediate.Display, module.ReferencedAssemblies[1].Name);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2687Diagnostic(ErrorCode.ERR_NoTypeDef, "c ??= new B()").WithArguments("A", $"{aRef.Display}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 9),
CodeGen\CodeGenTupleTest.cs (2)
25336Assert.Equal(libWithVTRef.Display, tuple2.ContainingAssembly.MetadataName.ToString()); 25342Assert.Equal(libWithVTRef.Display, tuple3.ContainingAssembly.MetadataName.ToString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Attributes\AttributeTests_Assembly.cs (2)
1423Diagnostic(ErrorCode.ERR_DuplicateAttributeInNetModule).WithArguments("UserDefinedAssemblyAttrNoAllowMultipleAttribute", netmodule1Ref.Display)); 1442Diagnostic(ErrorCode.ERR_DuplicateAttributeInNetModule).WithArguments("UserDefinedAssemblyAttrNoAllowMultipleAttribute", netmodule1Ref.Display));
Attributes\AttributeTests_IsUnmanaged.cs (8)
147AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display); 173AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display); 209AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display); 237AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display); 264AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display); 290AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display); 327AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display); 356AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display);
Semantics\PatternMatchingTests_ListPatterns.cs (1)
3453Assert.True(used.Any(r => r.Display == "range"));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
3235ctx.RegisterSourceOutput(ctx.MetadataReferencesProvider, (spc, r) => { referenceList.Add(r.Display); });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\GetImportScopesTests.cs (1)
403var reference = comp.References.First(r => r.Display!.StartsWith("System.Core"));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (7)
Metadata\WinMdEventTests.cs (1)
2747var winmdlib = comp.ExternalReferences.Where(r => r.Display == "Windows").Single();
Metadata\WinMdMetadataTests.cs (6)
46var winmdlib = comp.ExternalReferences.Where(r => r.Display == "Windows").Single(); 68var winmdlib = comp.ExternalReferences.Where(r => r.Display == "Windows").Single(); 89var winmdlib = comp.ExternalReferences.Where(r => r.Display == "Windows").Single(); 109var winmdlib = comp.ExternalReferences.Where(r => r.Display == "Windows").Single(); 129var winmdlib = comp.ExternalReferences.Where(r => r.Display == "Windows").Single(); 171var winmdlib = comp.ExternalReferences.Where(r => r.Display == "Windows").Single();
Microsoft.CodeAnalysis.EditorFeatures (2)
Preview\AbstractPreviewFactoryService.cs (2)
160string.Format(EditorFeaturesResources.Adding_reference_0_to_1, metadataReference.Display, oldProject.Name))); 167string.Format(EditorFeaturesResources.Removing_reference_0_from_1, metadataReference.Display, oldProject.Name)));
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
48return assemblyReference?.Display ?? FeaturesResources.location_unknown;
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\DecompiledSource\AssemblyResolver.cs (3)
133Log(FeaturesResources.Load_from_0, reference.Display); 141if (File.Exists(reference.Display)) 143return new PEFile(reference.Display, PEStreamOptions.PrefetchMetadata);
Microsoft.CodeAnalysis.Test.Utilities (3)
Mocks\TestMissingMetadataReferenceResolver.cs (1)
30return $"{Reference.Display} -> {Identity.GetDisplayName()}";
TargetFrameworkUtil.cs (2)
354throw new Exception($"Duplicate reference detected {r.Display}"); 360throw new Exception($"Duplicate reference detected {r.Display} - {name}");
Microsoft.CodeAnalysis.UnitTests (11)
MetadataReferences\MetadataReferenceTests.cs (11)
434Assert.Equal(CodeAnalysisResources.InMemoryAssembly, r.Display); 437Assert.Equal(CodeAnalysisResources.InMemoryModule, r.Display); 440Assert.Equal(@"c:\blah", r.Display); 443Assert.Equal(@"dddd", r.Display); 446Assert.Equal(@"dddd", r.Display); 449Assert.Equal(@"compilation name", r.Display); 452Assert.Equal(@"compilation name", r.Display); 554Assert.True(eq, string.Format("expected '{0}' == '{1}'", r.Display, s.Display)); 558Assert.False(eq, string.Format("expected '{0}' != '{1}'", r.Display, s.Display));
Microsoft.CodeAnalysis.VisualBasic (3)
Errors\MessageProvider.vb (3)
389If(reference.Display, identity.GetDisplayName()), 390If(equivalentReference.Display, equivalentIdentity.GetDisplayName())) 397If(equivalentReference.Display, equivalentIdentity.GetDisplayName()))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (8)
SymbolsTests\Retargeting\RetargetingTests.vb (8)
3120Dim Item As String = r.Display 3121If r.Display.ToLower.Contains("mscorlib") And r.Display.ToLower.Contains("net4") Then 3130Dim Item As String = r.Display 3131If r.Display.ToLower.Contains("mscorlib") And r.Display.ToLower.Contains("net4") Then 3134ElseIf r.Display.ToLower.Contains("microsoft.visualbasic") And r.Display.ToLower.Contains("net4") Then
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
576var message = string.Format(WorkspaceMSBuildResources.Unable_to_add_metadata_reference_0, metadataReference.Display); 612var message = string.Format(WorkspaceMSBuildResources.Unable_to_remove_metadata_reference_0, metadataReference.Display);
Microsoft.VisualStudio.LanguageServices (3)
Library\VsNavInfo\NavInfoFactory.cs (1)
31return new NavInfo(this, libraryName: reference.Display);
Preview\ReferenceChange.MetadataReferenceChange.cs (1)
31var display = _reference.Display ?? ServicesVSResources.Unknown1;
Snippets\SnippetExpansionClient.cs (1)
1086var existingReferenceNames = originalProject.MetadataReferences.Select(r => Path.GetFileNameWithoutExtension(r.Display));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Interactive\Commands\ResetInteractiveTests.cs (1)
142var metadataReferences = project.MetadataReferences.Select(r => r.Display);
Mvc.Api.Analyzers.Test (1)
Infrastructure\MvcDiagnosticAnalyzerRunner.cs (1)
37if (!project.MetadataReferences.Any(c => string.Equals(Path.GetFileNameWithoutExtension(c.Display), Path.GetFileNameWithoutExtension(assembly), StringComparison.OrdinalIgnoreCase)))