Skip to main content

StatementListInfo.LastIndexOf Method

Containing Type: StatementListInfo

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
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

Int32

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

Returns

Int32