Table of Contents

Class Choice

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

Matches one of several alternatives.

public class Choice : Pattern, INode, IEnumerable<INode>, IEnumerable
Inheritance
Choice
Implements
Inherited Members
Extension Methods

Constructors

Choice()

public Choice()

Methods

Add(INode)

public void Add(INode alternative)

Parameters

alternative INode

Add(string, INode)

public void Add(string name, INode alternative)

Parameters

name string
alternative INode

DoMatch(INode, Match)

public override bool DoMatch(INode other, Match match)

Parameters

other INode
match Match

Returns

bool