tlang-interperter-cs/TString.cs

18 lines
337 B
C#
Raw Normal View History

2023-03-09 19:40:14 +00:00
namespace tlang
{
public class TString : TObject
{
public string Value {get;set;}
2023-03-09 23:57:16 +00:00
public override bool AsBoolean => Value.Length > 0;
2023-03-09 19:40:14 +00:00
public TString(string text)
{
Value = text;
}
public override string ToString()
{
return Value;
}
}
}