Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 00f0719

Browse files
committed
Change Dynamic classes to use public StringBuilderCache since they're shipped in SS.Client
1 parent 9e4c432 commit 00f0719

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ServiceStack.Text/Pcl.Dynamic.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ internal static string Underscored(string pascalCase)
168168

169169
internal static string Underscored(IEnumerable<char> pascalCase)
170170
{
171-
var sb = StringBuilderThreadStatic.Allocate();
171+
var sb = StringBuilderCache.Allocate();
172172
var i = 0;
173173
foreach (var c in pascalCase)
174174
{
@@ -179,7 +179,7 @@ internal static string Underscored(IEnumerable<char> pascalCase)
179179
sb.Append(c);
180180
i++;
181181
}
182-
return StringBuilderThreadStatic.ReturnAndFree(sb).ToLowerInvariant();
182+
return StringBuilderCache.ReturnAndFree(sb).ToLowerInvariant();
183183
}
184184
}
185185
#endif

src/ServiceStack.Text/TypeConstants.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public static class TypeConstants
99
public static readonly string[] EmptyStringArray = new string[0];
1010
public static readonly long[] EmptyLongArray = new long[0];
1111
public static readonly int[] EmptyIntArray = new int[0];
12+
public static readonly char[] EmptyCharArray = new char[0];
1213
public static readonly bool[] EmptyBoolArray = new bool[0];
1314
public static readonly byte[] EmptyByteArray = new byte[0];
1415
public static readonly object[] EmptyObjectArray = new object[0];
@@ -21,6 +22,7 @@ public static class TypeConstants
2122
public static readonly List<string> EmptyStringList = new List<string>(0);
2223
public static readonly List<long> EmptyLongList = new List<long>(0);
2324
public static readonly List<int> EmptyIntList = new List<int>(0);
25+
public static readonly List<char> EmptyCharList = new List<char>(0);
2426
public static readonly List<bool> EmptyBoolList = new List<bool>(0);
2527
public static readonly List<byte> EmptyByteList = new List<byte>(0);
2628
public static readonly List<object> EmptyObjectList = new List<object>(0);

0 commit comments

Comments
 (0)