public static Group Synchronized(Group inner) { if (inner == null) throw new ArgumentNullException(nameof(inner)); // force Captures to be computed. CaptureCollection capcoll; Capture dummy; capcoll = inner.Captures; if (inner._capcount > 0) dummy = capcoll[0]; return inner; }
public static Match Synchronized(Match inner) { if (inner == null) { throw new ArgumentNullException(); } int length = inner._matchcount.Length; for (int i = 0; i < length; i++) { Group group = inner.Groups[i]; Group.Synchronized(group); } return(inner); }