public interface ITypeParameterData

assembly RefDocGen
namespace RefDocGen.CodeElements.Types.Abstract

Represents declaration of a generic type parameter.

Properties

public CodeElementKind DeclaredAt { get; } #
Returns kind of the code element (type / member) where the type parameter is declared.
public XElement DocComment { get; } #
Doc comment for the type parameter.
public int Index { get; } #
Index of the parameter in the declaring type's parameter collection.
public bool IsContravariant { get; } #
Check whether the type parameter is contravariant.
public bool IsCovariant { get; } #
Check whether the type parameter is covariant.
public string Name { get; } #
Name of the type parameter (e.g. 'TKey').
public IEnumerable<SpecialTypeConstraint> SpecialConstraints { get; } #
Special constraints of the generic parameter.
Remarks
Note: This collection doesn't contain any type constraints (these are contained in ITypeParameterData.TypeConstraints collection).
public IEnumerable<ITypeNameData> TypeConstraints { get; } #
Type constraints of the generic parameter.
Remarks
Note: This collection doesn't contain any special constraints (such as that the type must be a reference type). These are contained in ITypeParameterData.SpecialConstraints collection).
public Type TypeObject { get; } #
Type object representing the type.