tlang-interperter-cs/tlanglib/TNull.cs

17 lines
333 B
C#
Raw Normal View History

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
}
}