Mercurial > pub > ImplabNet
diff Implab/JSON/JSONWriter.cs @ 119:2573b562e328 v2
Promises rewritten, added improved version of AsyncQueue
author | cin |
---|---|
date | Sun, 11 Jan 2015 19:13:02 +0300 |
parents | e046a94eecb1 |
children | 0fa293bb1351 |
line wrap: on
line diff
--- a/Implab/JSON/JSONWriter.cs Sun Dec 28 16:09:03 2014 +0300 +++ b/Implab/JSON/JSONWriter.cs Sun Jan 11 19:13:02 2015 +0300 @@ -1,9 +1,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Implab.JSON { public class JSONWriter { @@ -23,7 +20,6 @@ _escapeCR, _escapeNL, _escapeTAB, - _escapeSLASH, _escapeBSLASH, _escapeQ; @@ -34,7 +30,6 @@ _escapeNL = "\\n".ToCharArray(); _escapeTAB = "\\t".ToCharArray(); _escapeBSLASH = "\\\\".ToCharArray(); - _escapeSLASH = "\\/".ToCharArray(); _escapeQ = "\\\"".ToCharArray(); } @@ -205,6 +200,7 @@ var chars = value.ToCharArray(); m_writer.Write('"'); + // Analysis disable once ForCanBeConvertedToForeach for (int i = 0; i < chars.Length; i++) { var ch = chars[i];