public static string Unescape(string stringToUnescape) { if (stringToUnescape == null) { throw new ArgumentNullException("stringToUnescape"); } return(JsonUtils.UnescapeBuffer(stringToUnescape.ToCharArray(), 0, stringToUnescape.Length)); }
internal static string UnquoteAndUnescape(string stringToUnescape) { if (stringToUnescape == null) { throw new ArgumentNullException("stringToUnescape"); } if (stringToUnescape.Length < 2) { throw new ArgumentException("stringToUnescape"); } return(JsonUtils.UnescapeBuffer(stringToUnescape.ToCharArray(), 1, stringToUnescape.Length - 2)); }