DiagnosticTools.Filter Method

Definition

Overloads

Filter(IEnumerable<Diagnostic>, Int32)

Extracts all elements which start at a line that is larger or equal to lowerBound.

Filter(IEnumerable<Diagnostic>, Func<Diagnostic,Boolean>, Int32)

Extracts all elements satisfying condition and which start at a line that is larger or equal to lowerBound.

Filter(IEnumerable<Diagnostic>, Int32, Int32)

Extracts all elements which start at a line that is larger or equal to lowerBound and smaller than upperBound.

Filter(IEnumerable<Diagnostic>, Func<Diagnostic,Boolean>, Int32, Int32)

Extracts all elements satisfying condition and which start at a line that is larger or equal to lowerBound and smaller than upperBound.

Filter(IEnumerable<Diagnostic>, Int32)

Extracts all elements which start at a line that is larger or equal to lowerBound.

public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>? Filter (this System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic> orig, int lowerBound);
static member Filter : seq<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic> * int -> seq<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>
<Extension()>
Public Function Filter (orig As IEnumerable(Of Diagnostic), lowerBound As Integer) As IEnumerable(Of Diagnostic)

Parameters

lowerBound
Int32

Returns

IEnumerable<Diagnostic>

Applies to

Filter(IEnumerable<Diagnostic>, Func<Diagnostic,Boolean>, Int32)

Extracts all elements satisfying condition and which start at a line that is larger or equal to lowerBound.

public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>? Filter (this System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>? orig, Func<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic,bool> condition, int lowerBound = -1);
static member Filter : seq<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic> * Func<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic, bool> * int -> seq<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>
<Extension()>
Public Function Filter (orig As IEnumerable(Of Diagnostic), condition As Func(Of Diagnostic, Boolean), Optional lowerBound As Integer = -1) As IEnumerable(Of Diagnostic)

Parameters

condition
Func<Diagnostic,Boolean>
lowerBound
Int32

Returns

IEnumerable<Diagnostic>

Remarks

Diagnostics without any range information are only extracted if no lower bound is specified or the specified lower bound is smaller than zero.

Applies to

Filter(IEnumerable<Diagnostic>, Int32, Int32)

Extracts all elements which start at a line that is larger or equal to lowerBound and smaller than upperBound.

public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>? Filter (this System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic> orig, int lowerBound, int upperBound);
static member Filter : seq<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic> * int * int -> seq<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>
<Extension()>
Public Function Filter (orig As IEnumerable(Of Diagnostic), lowerBound As Integer, upperBound As Integer) As IEnumerable(Of Diagnostic)

Parameters

lowerBound
Int32
upperBound
Int32

Returns

IEnumerable<Diagnostic>

Applies to

Filter(IEnumerable<Diagnostic>, Func<Diagnostic,Boolean>, Int32, Int32)

Extracts all elements satisfying condition and which start at a line that is larger or equal to lowerBound and smaller than upperBound.

public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>? Filter (this System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>? orig, Func<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic,bool> condition, int lowerBound, int upperBound);
static member Filter : seq<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic> * Func<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic, bool> * int * int -> seq<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>
<Extension()>
Public Function Filter (orig As IEnumerable(Of Diagnostic), condition As Func(Of Diagnostic, Boolean), lowerBound As Integer, upperBound As Integer) As IEnumerable(Of Diagnostic)

Parameters

condition
Func<Diagnostic,Boolean>
lowerBound
Int32
upperBound
Int32

Returns

IEnumerable<Diagnostic>

Applies to