using System; namespace System.Text.RegularExpressions { /// Represents the results from a single capturing group. // Token: 0x020002AD RID: 685 [Serializable] public class Group : Capture { // Token: 0x060018FE RID: 6398 RVA: 0x00055A90 File Offset: 0x00053C90 internal Group(string text, int index, int length, int n_caps) : base(text, index, length) { this.success = true; this.captures = new CaptureCollection(n_caps); this.captures.SetValue(this, n_caps - 1); } // Token: 0x060018FF RID: 6399 RVA: 0x00055AC0 File Offset: 0x00053CC0 internal Group(string text, int index, int length) : base(text, index, length) { this.success = true; } // Token: 0x06001900 RID: 6400 RVA: 0x00055AD4 File Offset: 0x00053CD4 internal Group() : base(string.Empty) { this.success = false; this.captures = new CaptureCollection(0); } /// Returns a Group object equivalent to the one supplied that is safe to share between multiple threads. /// A regular expression Group object. /// The input object. /// /// is null. // Token: 0x06001902 RID: 6402 RVA: 0x00055B00 File Offset: 0x00053D00 [global::System.MonoTODO("not thread-safe")] public static Group Synchronized(Group inner) { if (inner == null) { throw new ArgumentNullException("inner"); } return inner; } /// Gets a collection of all the captures matched by the capturing group, in innermost-leftmost-first order (or innermost-rightmost-first order if the regular expression is modified with the option). The collection may have zero or more items. /// The collection of substrings matched by the group. // Token: 0x170007D6 RID: 2006 // (get) Token: 0x06001903 RID: 6403 RVA: 0x00055B14 File Offset: 0x00053D14 public CaptureCollection Captures { get { return this.captures; } } /// Gets a value indicating whether the match is successful. /// true if the match is successful; otherwise, false. // Token: 0x170007D7 RID: 2007 // (get) Token: 0x06001904 RID: 6404 RVA: 0x00055B1C File Offset: 0x00053D1C public bool Success { get { return this.success; } } // Token: 0x040013C6 RID: 5062 internal static Group Fail = new Group(); // Token: 0x040013C7 RID: 5063 private bool success; // Token: 0x040013C8 RID: 5064 private CaptureCollection captures; } }