-Performance

This commit is contained in:
James Newton-King
2014-09-28 16:19:18 +13:00
parent 21eb43e3b3
commit 1337c4f7f7
19 changed files with 371 additions and 64 deletions
+5 -3
View File
@@ -355,15 +355,17 @@ namespace Newtonsoft.Json
internal static string ToString(Guid value, char quoteChar)
{
string text = null;
string text;
string qc;
#if !(NETFX_CORE || PORTABLE40 || PORTABLE)
text = value.ToString("D", CultureInfo.InvariantCulture);
qc = quoteChar.ToString(CultureInfo.InvariantCulture);
#else
text = value.ToString("D");
qc = quoteChar.ToString();
#endif
return quoteChar + text + quoteChar;
return qc + text + qc;
}
/// <summary>