/// <summary> /// Declares this <see cref="Pattern"/> should be captured into <paramref name="capture"/> for later reference. /// </summary> /// <param name="pattern">The <see cref="Pattern"/> to capture.</param> /// <param name="capture">A <see cref="Patterns.Capture"/> object to store into.</param> /// <returns>A new <paramref name="pattern"/> which will capture its result into <paramref name="capture"/>.</returns> public static Pattern Capturer(Pattern pattern, out Capture capture) { if (pattern is null) { throw new ArgumentNullException(nameof(pattern)); } return(pattern.Capture(out capture)); }
public static Pattern Capturer(Pattern Pattern, out Capture Capture) => Pattern.Capture(out Capture);