Table of Contents

Class Constraint

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

where TypeParameter : BaseTypes

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

Remarks

new(), struct and class constraints are represented using a PrimitiveType "new", "struct" or "class"

Constructors

Constraint()

public Constraint()

Properties

BaseTypes

public AstNodeCollection<AstType> BaseTypes { get; }

Property Value

AstNodeCollection<AstType>

NodeType

public override NodeType NodeType { get; }

Property Value

NodeType

TypeParameter

public SimpleType TypeParameter { get; set; }

Property Value

SimpleType

WhereKeyword

public CSharpTokenNode WhereKeyword { 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