public PatternElementInstance(PatternElementType type, string value) { ElementType = type; InstanceValue = value; }
public PatternElementInstance(PatternElementType type, PatternInstance subPattern) { // Assert ElementType == PatternElementType.SubPattern ElementType = type; SubPattern = subPattern; }
// Type Specific Constructors public PatternElement(PatternElementType type, string key, bool optional = false) { Type = type; Key = key; bOptional = optional; }