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
InVarianceKeywordRole
public static readonly TokenRole InVarianceKeywordRole
Field Value
OutVarianceKeywordRole
public static readonly TokenRole OutVarianceKeywordRole
Field Value
Properties
Attributes
public AstNodeCollection<AttributeSection> Attributes { get; }
Property Value
Name
public string Name { get; set; }
Property Value
NameToken
public Identifier NameToken { get; set; }
Property Value
NodeType
public override NodeType NodeType { get; }
Property Value
Variance
public VarianceModifier Variance { get; set; }
Property Value
VarianceToken
public CSharpTokenNode VarianceToken { get; }
Property Value
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)