5 references to WhereAsArray
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Dependencies\Collections\OneOrMany.cs (1)
121
return OneOrMany.Create(_many.
WhereAsArray
(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (3)
164
attributes: method.GetAttributes().
WhereAsArray
(static (a, arg) => !shouldRemoveAttribute(a, arg), arg: arg),
167
p.GetAttributes().
WhereAsArray
(static (a, arg) => !shouldRemoveAttribute(a, arg), arg: arg),
170
returnTypeAttributes: method.GetReturnTypeAttributes().
WhereAsArray
(static (a, arg) => !shouldRemoveAttribute(a, arg), arg: arg));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (1)
62
p.GetAttributes().
WhereAsArray
(static (a, arg) => !ShouldRemoveAttribute(a, arg), arg: arg),