public NamedValues <ZValue> GetAllValues() { if (_matchValues == null) { throw new PBException("can't get all values, no match found"); } return(_matchValues.GetAllValues()); }
public static RegexCaptureValues CreateRegexCaptureValues(MatchValues matchValues, bool allValues = false) { if (matchValues != null && matchValues.Success) { if (allValues) { return new RegexCaptureValues { capture = matchValues.Match.Value, values = matchValues.GetAllValues() } } ; else { return new RegexCaptureValues { capture = matchValues.Match.Value, values = matchValues.GetValues() } }; } else { return(null); } }