using System.Collections.Generic; namespace TLang.VM { public class TString : TObject { public override string Type => "string"; public override bool True => !string.IsNullOrWhiteSpace(Value); public string Value {get;set;} public IEnumerable GetObjects() { foreach(var item in Value) { yield return new TChar(item); } } public IEnumerable GetChars() { foreach(var item in Value) { yield return new TChar(item); } } public TString(string value) { this.Value = value; } public override string ToString() { return Value; } } }