Skip to main content

UsingDirectiveListInfo.LastIndexOf Method

Containing Type: UsingDirectiveListInfo

Assembly: Roslynator.CSharp.dll

Overloads​

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

LastIndexOf(Func<UsingDirectiveSyntax, Boolean>)​

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

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

Parameters​

predicate   Func<UsingDirectiveSyntax, Boolean>

Returns​

Int32

LastIndexOf(UsingDirectiveSyntax)​

Searches for an using directive and returns zero-based index of the last occurrence in the list.

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

Parameters​

usingDirective   UsingDirectiveSyntax

Returns​

Int32