Class Pattern
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching
- Assembly
- ICSharpCode.Decompiler.dll
Base class for all patterns.
public abstract class Pattern : INode
- Inheritance
-
Pattern
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Pattern()
protected Pattern()
Fields
AnyString
Gets the string that matches any string.
public static readonly string AnyString
Field Value
Methods
DoMatch(INode, Match)
public abstract bool DoMatch(INode other, Match match)
Parameters
Returns
DoMatchCollection(Role, INode, INode, Match)
public static bool DoMatchCollection(Role role, INode firstPatternChild, INode firstOtherChild, Match match)
Parameters
Returns
DoMatchCollection(Role, INode, Match, BacktrackingInfo)
public virtual bool DoMatchCollection(Role role, INode pos, Match match, BacktrackingInfo backtrackingInfo)
Parameters
role
Rolepos
INodematch
MatchbacktrackingInfo
BacktrackingInfo
Returns
MatchString(string, string)
public static bool MatchString(string pattern, string text)