-Improve performance and memory usage when serializing Unicode characters
This commit is contained in:
@@ -45,9 +45,8 @@ namespace Newtonsoft.Json.Utilities
|
||||
public static char IntToHex(int n)
|
||||
{
|
||||
if (n <= 9)
|
||||
{
|
||||
return (char)(n + 48);
|
||||
}
|
||||
|
||||
return (char)((n - 10) + 97);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user