5 references to GetBestTypeByMetadataName
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
143
semanticModel.Compilation.
GetBestTypeByMetadataName
(typeof(Enumerable).FullName!) != null;
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (2)
41
var equalityComparerType = compilation.
GetBestTypeByMetadataName
(typeof(EqualityComparer<>).FullName!);
46
var systemHashCodeType = compilation.
GetBestTypeByMetadataName
("System.HashCode");
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
125
_iNotifyCompletionType = compilation.
GetBestTypeByMetadataName
(typeof(INotifyCompletion).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (1)
88
=> compilation.
GetBestTypeByMetadataName
($"System.Runtime.CompilerServices.CallConv{callingConvention}");