public string ToTreeString(int depth = 0) { string res = ""; for (int i = 0; i < depth; i++) { res += " "; } res += "{" + TagType.GetNotchName() + "}"; if (Name != null) { res += " " + Name + ":"; } res += Environment.NewLine; foreach (sbyte b in Values) { for (int i = 0; i < depth + 1; i++) { res += " "; } res += b.ToString("X2") + Environment.NewLine; } return(res.TrimEnd('\n')); }
public override string ToString() { string res = "{" + TagType.GetNotchName() + "} "; if (Name != null) { res += Name + ": "; } res += Values.Count.ToString() + " Bytes"; return(res); }
public override string ToString() { string res = "{" + TagType.GetNotchName() + "} "; if (Name != null) { res += Name + ": "; } res += Children.Count.ToString() + " Items"; return(res); }
public string ToTreeString(int depth = 0) { string res = ""; for (int i = 0; i < depth; i++) { res += " "; } res += "{" + TagType.GetNotchName() + "}"; if (Name != null) { res += " " + Name + ":"; } res += Environment.NewLine; foreach (INamedBinaryTag tag in Children) { res += tag.ToTreeString(depth + 1) + Environment.NewLine; } return(res.TrimEnd('\n')); }