tlang-interperter-cs/tlanglib/TString.cs

18 lines
337 B
C#

namespace tlang
{
public class TString : TObject
{
public string Value {get;set;}
public override bool AsBoolean => Value.Length > 0;
public TString(string text)
{
Value = text;
}
public override string ToString()
{
return Value;
}
}
}