Skip to main content

GenericInfo.FindConstraintClause(String) Method

Containing Type: GenericInfo

Assembly: Roslynator.CSharp.dll

Searches for a constraint clause with the specified type parameter name and returns the first occurrence within the constraint clauses.

public Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterConstraintClauseSyntax? FindConstraintClause(string typeParameterName)

Parameters

typeParameterName String

Returns

TypeParameterConstraintClauseSyntax