Ignore:
Timestamp:
Aug 9, 2017, 7:43:07 PM (7 years ago)
Author:
alloc
Message:

Fixes 14_16_21

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/JSON/JSONBoolean.cs

    r279 r309  
    11using System;
     2using System.Text;
    23
    34namespace AllocsFixes.JSON
     
    1718                }
    1819
    19                 public override string ToString (bool prettyPrint = false, int currentLevel = 0)
     20                public override void ToString (StringBuilder stringBuilder, bool prettyPrint = false, int currentLevel = 0)
    2021                {
    21                         return value.ToString (System.Globalization.CultureInfo.InvariantCulture).ToLower ();
     22                        stringBuilder.Append (value ? "true" : "false");
    2223                }
    2324
Note: See TracChangeset for help on using the changeset viewer.