This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ internal static string Underscored(string pascalCase)
168
168
169
169
internal static string Underscored ( IEnumerable < char > pascalCase )
170
170
{
171
- var sb = StringBuilderThreadStatic . Allocate ( ) ;
171
+ var sb = StringBuilderCache . Allocate ( ) ;
172
172
var i = 0 ;
173
173
foreach ( var c in pascalCase )
174
174
{
@@ -179,7 +179,7 @@ internal static string Underscored(IEnumerable<char> pascalCase)
179
179
sb . Append ( c ) ;
180
180
i ++ ;
181
181
}
182
- return StringBuilderThreadStatic . ReturnAndFree ( sb ) . ToLowerInvariant ( ) ;
182
+ return StringBuilderCache . ReturnAndFree ( sb ) . ToLowerInvariant ( ) ;
183
183
}
184
184
}
185
185
#endif
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ public static class TypeConstants
9
9
public static readonly string [ ] EmptyStringArray = new string [ 0 ] ;
10
10
public static readonly long [ ] EmptyLongArray = new long [ 0 ] ;
11
11
public static readonly int [ ] EmptyIntArray = new int [ 0 ] ;
12
+ public static readonly char [ ] EmptyCharArray = new char [ 0 ] ;
12
13
public static readonly bool [ ] EmptyBoolArray = new bool [ 0 ] ;
13
14
public static readonly byte [ ] EmptyByteArray = new byte [ 0 ] ;
14
15
public static readonly object [ ] EmptyObjectArray = new object [ 0 ] ;
@@ -21,6 +22,7 @@ public static class TypeConstants
21
22
public static readonly List < string > EmptyStringList = new List < string > ( 0 ) ;
22
23
public static readonly List < long > EmptyLongList = new List < long > ( 0 ) ;
23
24
public static readonly List < int > EmptyIntList = new List < int > ( 0 ) ;
25
+ public static readonly List < char > EmptyCharList = new List < char > ( 0 ) ;
24
26
public static readonly List < bool > EmptyBoolList = new List < bool > ( 0 ) ;
25
27
public static readonly List < byte > EmptyByteList = new List < byte > ( 0 ) ;
26
28
public static readonly List < object > EmptyObjectList = new List < object > ( 0 ) ;
You can’t perform that action at this time.
0 commit comments