Skip to main content

SymbolExtensions.FindTypeMember Method

Containing Type: SymbolExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
FindTypeMember(INamedTypeSymbol, Func<INamedTypeSymbol, Boolean>, Boolean)Searches for a type member that matches the conditions defined by the specified predicate and returns the first occurrence within the type's members.
FindTypeMember(INamedTypeSymbol, String, Func<INamedTypeSymbol, Boolean>, Boolean)Searches for a type member that has the specified name and matches the conditions defined by the specified predicate, if any, and returns the first occurrence within the type's members.
FindTypeMember(INamedTypeSymbol, String, Int32, Func<INamedTypeSymbol, Boolean>, Boolean)Searches for a type member that has the specified name, arity and matches the conditions defined by the specified predicate, if any, and returns the first occurrence within the type's members.

FindTypeMember(INamedTypeSymbol, Func<INamedTypeSymbol, Boolean>, Boolean)

Searches for a type member that matches the conditions defined by the specified predicate and returns the first occurrence within the type's members.

public static Microsoft.CodeAnalysis.INamedTypeSymbol? FindTypeMember(this Microsoft.CodeAnalysis.INamedTypeSymbol typeSymbol, Func<Microsoft.CodeAnalysis.INamedTypeSymbol, bool> predicate, bool includeBaseTypes = false)

Parameters

typeSymbol INamedTypeSymbol

predicate Func<INamedTypeSymbol, Boolean>

includeBaseTypes Boolean

Returns

INamedTypeSymbol

FindTypeMember(INamedTypeSymbol, String, Func<INamedTypeSymbol, Boolean>, Boolean)

Searches for a type member that has the specified name and matches the conditions defined by the specified predicate, if any, and returns the first occurrence within the type's members.

public static Microsoft.CodeAnalysis.INamedTypeSymbol? FindTypeMember(this Microsoft.CodeAnalysis.INamedTypeSymbol typeSymbol, string name, Func<Microsoft.CodeAnalysis.INamedTypeSymbol, bool>? predicate = null, bool includeBaseTypes = false)

Parameters

typeSymbol INamedTypeSymbol

name String

predicate Func<INamedTypeSymbol, Boolean>

includeBaseTypes Boolean

Returns

INamedTypeSymbol

FindTypeMember(INamedTypeSymbol, String, Int32, Func<INamedTypeSymbol, Boolean>, Boolean)

Searches for a type member that has the specified name, arity and matches the conditions defined by the specified predicate, if any, and returns the first occurrence within the type's members.

public static Microsoft.CodeAnalysis.INamedTypeSymbol? FindTypeMember(this Microsoft.CodeAnalysis.INamedTypeSymbol typeSymbol, string name, int arity, Func<Microsoft.CodeAnalysis.INamedTypeSymbol, bool>? predicate = null, bool includeBaseTypes = false)

Parameters

typeSymbol INamedTypeSymbol

name String

arity Int32

predicate Func<INamedTypeSymbol, Boolean>

includeBaseTypes Boolean

Returns

INamedTypeSymbol