public string get_ascent_types() //タイプを遡って纏めて文字列化。listの先頭のみが対象 { string s = null; Action <YVALUE> printtype = null; printtype = (v) => { if (v == null) { return; } if (s != null) { s += "-"; } s += YDEF.get_name(v.type); if (v.list != null && v.list.Count > 0) { printtype(v.list[0]); } }; printtype(this); return(s); }
public override string ToString() { string s = null; list.ForEach(i => { if (s != null) { s += ","; } if (i.GetType() == typeof(int)) { s += YDEF.get_name((int)i); } else { s += i.ToString(); } }); return(name + ":" + s); }
public override string ToString() { string s = null; s += type.ToString() + ":" + YDEF.get_name(type); s += ":" + (o != null ? o.ToString() : "null") + ">"; string q = null; if (list != null && list.Count > 0) { foreach (var i in list) { if (!string.IsNullOrEmpty(i.s)) { if (q != null) { q += ","; } q += i.s; } else if (i.o != null) { if (q != null) { q += ","; } q += o.GetType(); } } } if (q != null) { s += q; } return(s); }
public string get_type_name() { return(YDEF.get_name(type)); }
// -- util -- private static string gn(object[] o) { return(YDEF.get_name(o)); }