- Timestamp:
- Aug 7, 2022, 3:02:24 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/7dtd-server-fixes/src/JSON/JSONNull.cs
r389 r391 3 3 4 4 namespace AllocsFixes.JSON { 5 public class J SONNull : JSONValue {5 public class JsonNull : JsonValue { 6 6 public override void ToString (StringBuilder _stringBuilder, bool _prettyPrint = false, int _currentLevel = 0) { 7 7 _stringBuilder.Append ("null"); 8 8 } 9 9 10 public static J SONNull Parse (string _json, ref int _offset) {10 public static JsonNull Parse (string _json, ref int _offset) { 11 11 //Log.Out ("ParseNull enter (" + offset + ")"); 12 12 13 13 if (!_json.Substring (_offset, 4).Equals ("null")) { 14 throw new MalformedJ SONException ("No valid null value found");14 throw new MalformedJsonException ("No valid null value found"); 15 15 } 16 16 17 17 //Log.Out ("JSON:Parsed Null"); 18 18 _offset += 4; 19 return new J SONNull ();19 return new JsonNull (); 20 20 } 21 21
Note:
See TracChangeset
for help on using the changeset viewer.