Struct Match
- Namespace
- ICSharpCode.Decompiler.IL.Patterns
- Assembly
- ICSharpCode.Decompiler.dll
Data holder for the overall pattern matching operation.
public struct Match
- Inherited Members
Remarks
This type is a struct in order to prevent unnecessary memory allocations during pattern matching.
The default value default(Match)
represents an unsuccessful match.
Properties
Success
Gets whether the match was successful.
public bool Success { get; }
Property Value
Methods
Get(CaptureGroup)
public IEnumerable<ILInstruction> Get(CaptureGroup captureGroup)
Parameters
captureGroup
CaptureGroup
Returns
Operators
operator false(Match)
Gets whether the match failed.
public static bool operator false(Match m)
Parameters
m
Match
Returns
operator true(Match)
Gets whether the match was successful.
public static bool operator true(Match m)
Parameters
m
Match