@@ -11,7 +11,7 @@ namespace XmlSchemaClassGenerator
11
11
public static class CodeUtilities
12
12
{
13
13
// 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 ) ;
15
15
16
16
// Uppercases first letter and all letters following non-letters.
17
17
// Examples: testcase -> Testcase, html5element -> Html5Element, test_case -> Test_Case
@@ -312,14 +312,14 @@ public static string GetUniquePropertyName(this TypeModel tm, string name)
312
312
return name ;
313
313
}
314
314
315
- static readonly Regex NormalizeNewlinesRegex = new Regex ( @"(^|[^\r])\n" , RegexOptions . Compiled ) ;
315
+ static readonly Regex NormalizeNewlinesRegex = new ( @"(^|[^\r])\n" , RegexOptions . Compiled ) ;
316
316
317
317
internal static string NormalizeNewlines ( string text )
318
318
{
319
319
return NormalizeNewlinesRegex . Replace ( text , "$1\r \n " ) ;
320
320
}
321
321
322
- static readonly List < string > CSharpKeywords = new List < string >
322
+ static readonly List < string > CSharpKeywords = new ( )
323
323
{
324
324
"abstract" , "as" , "base" , "bool" ,
325
325
"break" , "byte" , "case" , "catch" ,
@@ -365,7 +365,7 @@ public static KeyValuePair<NamespaceKey, string> ParseNamespace(string nsArg, st
365
365
return new KeyValuePair < NamespaceKey , string > ( new NamespaceKey ( source , xmlNs ) , netNs ) ;
366
366
}
367
367
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 ( ) {
369
369
( "System" , c => c . CompactTypeNames ) ,
370
370
( "System.CodeDom.Compiler" , c => c . CompactTypeNames ) ,
371
371
( "System.Collections.Generic" , c => c . CompactTypeNames ) ,
0 commit comments