StatementListInfo.LastIndexOf Method
Containing Type: StatementListInfo
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
LastIndexOf(Func<StatementSyntax, Boolean>) | Searches for a statement that matches the predicate and returns zero-based index of the last occurrence in the list. |
LastIndexOf(StatementSyntax) | Searches for a statement and returns zero-based index of the last occurrence in the list. |
LastIndexOf(Func<StatementSyntax, Boolean>)
Searches for a statement that matches the predicate and returns zero-based index of the last occurrence in the list.
public int LastIndexOf(Func<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax, bool> predicate)
Parameters
predicate Func<StatementSyntax, Boolean>
Returns
LastIndexOf(StatementSyntax)
Searches for a statement and returns zero-based index of the last occurrence in the list.
public int LastIndexOf(Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement)
Parameters
statement StatementSyntax