public CaseInsensitiveCharPattern(CharPattern childPattern) { if (childPattern == null) { throw new ArgumentNullException("childPattern.", "Child pattern is null in case-insensitive char pattern."); } ChildPattern = childPattern; }