2023-06-08 18:14:35 +00:00
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
2023-03-09 19:40:14 +00:00
|
|
|
namespace tlang
|
|
|
|
{
|
|
|
|
public class TNull : TObject
|
|
|
|
{
|
2023-03-09 23:57:16 +00:00
|
|
|
public override bool AsBoolean => false;
|
2023-03-09 19:40:14 +00:00
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return "null";
|
|
|
|
}
|
2023-06-08 18:14:35 +00:00
|
|
|
public override JToken AsToken()
|
|
|
|
{
|
|
|
|
return JValue.CreateNull();
|
|
|
|
}
|
2023-03-09 19:40:14 +00:00
|
|
|
}
|
|
|
|
}
|