11 references to GetBestTypeByMetadataName
Microsoft.CodeAnalysis.CodeStyle (3)
AbstractForEachCastDiagnosticAnalyzer.cs (1)
127semanticModel.Compilation.GetBestTypeByMetadataName(typeof(Enumerable).FullName!) != null;
HashCodeAnalyzer.cs (2)
41var equalityComparerType = compilation.GetBestTypeByMetadataName(typeof(EqualityComparer<>).FullName!); 46var systemHashCodeType = compilation.GetBestTypeByMetadataName("System.HashCode");
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
AbstractForEachCastCodeFixProvider.cs (1)
67var enumerableType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(Enumerable).FullName!);
AbstractSemanticFactsService.cs (1)
118var disposableType = compilation.GetBestTypeByMetadataName(typeName);
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
ConvertProgramAnalysis_ProgramMain.cs (1)
39var programType = compilation.GetBestTypeByMetadataName(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName);
CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
45var indexType = compilation.GetBestTypeByMetadataName(typeof(Index).FullName!);
CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
57var rangeType = compilation.GetBestTypeByMetadataName(typeof(Range).FullName!);
UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
52if (context.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!) is null)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
ConvertToRecordHelpers.cs (1)
70var equatable = compilation.GetBestTypeByMetadataName("System.IEquatable`1")?.Construct(containingType);
UseUtf8StringLiteralCodeFixProvider.cs (1)
51var readOnlySpanType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);