MemberDeclarationListInfo.IndexOf Method
Containing Type: MemberDeclarationListInfo
Assembly: Roslynator.CSharp.dll
Overloads
| Method | Summary |
|---|---|
| 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
IndexOf(MemberDeclarationSyntax)
The index of the member in the list.
public int IndexOf(Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax member)
Parameters
member MemberDeclarationSyntax