@@ -11,7 +11,7 @@ namespace XmlSchemaClassGenerator
1111 public static class CodeUtilities
1212 {
1313 // Match non-letter followed by letter
14- static readonly Regex PascalCaseRegex = new Regex ( @"[^\p{L}]\p{L}" , RegexOptions . Compiled ) ;
14+ static readonly Regex PascalCaseRegex = new ( @"[^\p{L}]\p{L}" , RegexOptions . Compiled ) ;
1515
1616 // Uppercases first letter and all letters following non-letters.
1717 // Examples: testcase -> Testcase, html5element -> Html5Element, test_case -> Test_Case
@@ -312,14 +312,14 @@ public static string GetUniquePropertyName(this TypeModel tm, string name)
312312 return name ;
313313 }
314314
315- static readonly Regex NormalizeNewlinesRegex = new Regex ( @"(^|[^\r])\n" , RegexOptions . Compiled ) ;
315+ static readonly Regex NormalizeNewlinesRegex = new ( @"(^|[^\r])\n" , RegexOptions . Compiled ) ;
316316
317317 internal static string NormalizeNewlines ( string text )
318318 {
319319 return NormalizeNewlinesRegex . Replace ( text , "$1\r \n " ) ;
320320 }
321321
322- static readonly List < string > CSharpKeywords = new List < string >
322+ static readonly List < string > CSharpKeywords = new ( )
323323 {
324324 "abstract" , "as" , "base" , "bool" ,
325325 "break" , "byte" , "case" , "catch" ,
@@ -365,7 +365,7 @@ public static KeyValuePair<NamespaceKey, string> ParseNamespace(string nsArg, st
365365 return new KeyValuePair < NamespaceKey , string > ( new NamespaceKey ( source , xmlNs ) , netNs ) ;
366366 }
367367
368- public static readonly List < ( string Namespace , Func < GeneratorConfiguration , bool > Condition ) > UsingNamespaces = new List < ( string , Func < GeneratorConfiguration , bool > ) > {
368+ public static readonly List < ( string Namespace , Func < GeneratorConfiguration , bool > Condition ) > UsingNamespaces = new ( ) {
369369 ( "System" , c => c . CompactTypeNames ) ,
370370 ( "System.CodeDom.Compiler" , c => c . CompactTypeNames ) ,
371371 ( "System.Collections.Generic" , c => c . CompactTypeNames ) ,
0 commit comments