Skip to main content

UsingDirectiveListInfo.IndexOf Method

Containing Type: UsingDirectiveListInfo

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
IndexOf(Func<UsingDirectiveSyntax, Boolean>)Searches for an using directive that matches the predicate and returns zero-based index of the first occurrence in the list.
IndexOf(UsingDirectiveSyntax)The index of the using directive in the list.

IndexOf(Func<UsingDirectiveSyntax, Boolean>)

Searches for an using directive that matches the predicate and returns zero-based index of the first occurrence in the list.

public int IndexOf(Func<Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax, bool> predicate)

Parameters

predicate Func<UsingDirectiveSyntax, Boolean>

Returns

Int32

IndexOf(UsingDirectiveSyntax)

The index of the using directive in the list.

public int IndexOf(Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax usingDirective)

Parameters

usingDirective UsingDirectiveSyntax

Returns

Int32