StyleCop.CSharp by StyleCop contributors, Andy Reeves, Chris Dahlberg

<PackageReference Include="StyleCop.CSharp" Version="6.2.0" />

.NET API 245,760 bytes


Describes a type constraint clause within a C# file.
public CodePartType CodePartType { get; }

Gets the type of this code part.

public ICollection<CsToken> Constraints { get; }

Gets the list of constraints on the type, if any.

public int LineNumber { get; }

Gets the line number that the clause begins on.

public CodeLocation Location { get; }

Gets the location of the clause.

public ICodePart Parent { get; }

Gets the parent of the constraint clause.

public CodeUnit ParentElement { get; }

Gets the parent element that contains this type constraint.

public CsTokenList Tokens { get; }

Gets the list of tokens that form the constraint.

public CsToken Type { get; }

Gets the type being constrained.