private static void ValidateRegionDirective(CodeRegionDirective e) { if (e.RegionText.IndexOfAny(newLineChars) != -1) throw new ArgumentException(SR.GetString(SR.InvalidRegion, e.RegionText)); }