Skip to main content

MemberDeclarationListInfo.IndexOf Method

Containing Type: MemberDeclarationListInfo

Assembly: Roslynator.CSharp.dll

Overloads​

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

IndexOf(Func<MemberDeclarationSyntax, Boolean>)​

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

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

Parameters​

predicate   Func<MemberDeclarationSyntax, Boolean>

Returns​

Int32

IndexOf(MemberDeclarationSyntax)​

The index of the member in the list.

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

Parameters​

member   MemberDeclarationSyntax

Returns​

Int32