forked from ln-dotnet/ln.json
24 lines
727 B
C#
24 lines
727 B
C#
using System;
|
|
namespace ln.json
|
|
{
|
|
public class JSONTrue : JSONValue
|
|
{
|
|
public static JSONTrue Instance { get; } = new JSONTrue();
|
|
private JSONTrue() : base(JSONValueType.TRUE) { }
|
|
public override string ToString() => "true";
|
|
}
|
|
public class JSONFalse : JSONValue
|
|
{
|
|
public static JSONFalse Instance { get; } = new JSONFalse();
|
|
private JSONFalse() : base(JSONValueType.FALSE) { }
|
|
public override string ToString() => "false";
|
|
}
|
|
public class JSONNull : JSONValue
|
|
{
|
|
public static JSONNull Instance { get; } = new JSONNull();
|
|
private JSONNull() : base(JSONValueType.NULL) { }
|
|
public override string ToString() => "null";
|
|
}
|
|
|
|
}
|