src/Workspaces/Core/Portable/Diagnostics/Extensions.cs
/// <summary>
/// Filters out the diagnostics with the specified <paramref name="diagnosticIdsToFilter"/>.
/// </summary>
Filters out the diagnostics with the specified .
Filters out the diagnostics with the specified .
public static ImmutableArray<Diagnostic> Filter(this ImmutableArray<Diagnostic> diagnostics, ImmutableArray<string> diagnosticIdsToFilter)
        {
            if (diagnosticIdsToFilter.IsEmpty)
            {
                return diagnostics;
            }
            return diagnostics.RemoveAll(diagnostic => diagnosticIdsToFilter.Contains(diagnostic.Id));
        }
public static ImmutableArray < Diagnostic > Filter ( this ImmutableArray < Diagnostic > diagnostics , ImmutableArray < string > diagnosticIdsToFilter ) { if ( diagnosticIdsToFilter . IsEmpty ) { return diagnostics ; } return diagnostics . RemoveAll ( diagnostic => diagnosticIdsToFilter . Contains ( diagnostic . Id ) ) ; }
Filters out the diagnostics with the specified .
Filters out the diagnostics with the specified .
ImmutableArray<Diagnostic>
this
diagnosticIdsToFilter
ImmutableArray<string>