Table of Contents

Class TypeParameterDeclaration

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

[in|out] Name

Represents a type parameter. Note: mirroring the C# syntax, constraints are not part of the type parameter declaration, but belong to the parent type or method.

public class TypeParameterDeclaration : AstNode, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
TypeParameterDeclaration
Implements
Inherited Members
Extension Methods

Constructors

TypeParameterDeclaration()

public TypeParameterDeclaration()

TypeParameterDeclaration(string)

public TypeParameterDeclaration(string name)

Parameters

name string

Fields

AttributeRole

public static readonly Role<AttributeSection> AttributeRole

Field Value

Role<AttributeSection>

InVarianceKeywordRole

public static readonly TokenRole InVarianceKeywordRole

Field Value

TokenRole

OutVarianceKeywordRole

public static readonly TokenRole OutVarianceKeywordRole

Field Value

TokenRole

Properties

Attributes

public AstNodeCollection<AttributeSection> Attributes { get; }

Property Value

AstNodeCollection<AttributeSection>

Name

public string Name { get; set; }

Property Value

string

NameToken

public Identifier NameToken { get; set; }

Property Value

Identifier

NodeType

public override NodeType NodeType { get; }

Property Value

NodeType

Variance

public VarianceModifier Variance { get; set; }

Property Value

VarianceModifier

VarianceToken

public CSharpTokenNode VarianceToken { get; }

Property Value

CSharpTokenNode

Methods

AcceptVisitor(IAstVisitor)

public override void AcceptVisitor(IAstVisitor visitor)

Parameters

visitor IAstVisitor

AcceptVisitor<T>(IAstVisitor<T>)

public override T AcceptVisitor<T>(IAstVisitor<T> visitor)

Parameters

visitor IAstVisitor<T>

Returns

T

Type Parameters

T

AcceptVisitor<T, S>(IAstVisitor<T, S>, T)

public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)

Parameters

visitor IAstVisitor<T, S>
data T

Returns

S

Type Parameters

T
S

DoMatch(AstNode, Match)

protected override bool DoMatch(AstNode other, Match match)

Parameters

other AstNode
match Match

Returns

bool