9 references to SelectAsArray
Microsoft.CodeAnalysis.CodeStyle (9)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (2)
84
: this(supportedDiagnosticsWithOptions.
SelectAsArray
(static item => item.Descriptor))
97
: this(supportedDiagnosticsWithOptions.
SelectAsArray
(static item => item.Descriptor))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigFile.cs (2)
23
private readonly Lazy<ImmutableArray<Section>> _sections = new(() => Options.
SelectAsArray
(x => x.Section).Distinct());
82
.
SelectAsArray
(section => (matchKind: section.GetMatchKind(filePath), section))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
352
return typesToImplement.
SelectAsArray
(s => (s, members: GetUnimplementedMembers(classOrStructType, s, isImplemented, isValidImplementation, interfaceMemberGetter, cancellationToken)))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (4)
23
var propertyTypes = properties.
SelectAsArray
(p => p.Type);
24
var propertyNames = properties.
SelectAsArray
(p => p.Name);
25
var propertyIsReadOnly = properties.
SelectAsArray
(p => p.SetMethod == null);
26
var propertyLocations = properties.
SelectAsArray
(p => p.Locations.FirstOrDefault());