Skip to main content

MemberDeclarationListInfo.LastIndexOf Method

Containing Type: MemberDeclarationListInfo

Assembly: Roslynator.CSharp.dll

Overloads​

MethodSummary
LastIndexOf(Func<MemberDeclarationSyntax, Boolean>)Searches for a member that matches the predicate and returns zero-based index of the last occurrence in the list.
LastIndexOf(MemberDeclarationSyntax)Searches for a member and returns zero-based index of the last occurrence in the list.

LastIndexOf(Func<MemberDeclarationSyntax, Boolean>)​

Searches for a member that matches the predicate and returns zero-based index of the last occurrence in the list.

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

Parameters​

predicate   Func<MemberDeclarationSyntax, Boolean>

Returns​

Int32

LastIndexOf(MemberDeclarationSyntax)​

Searches for a member and returns zero-based index of the last occurrence in the list.

public int LastIndexOf(Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax member)

Parameters​

member   MemberDeclarationSyntax

Returns​

Int32