UsingDirectiveListInfo.LastIndexOf Method
Containing Type: UsingDirectiveListInfo
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
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
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