public override global::System.String ToString() { var offset = OffsetToString(Offset) + ":"; var prefixSpec = Prefixes.Count == 0 ? "" : ("[" + global::XenoGears.Functional.EnumerableExtensions.StringJoin(Prefixes) + "]"); var name = "stind"; var mods = new global::System.Collections.Generic.List <global::System.String>(); var modSpec = global::XenoGears.Functional.EnumerableExtensions.StringJoin(global::System.Linq.Enumerable.Where(mods, mod => global::XenoGears.Functional.EnumerableExtensions.IsNeitherNullNorEmpty(mod)), ", "); var operand = ((Type != null ? TypeToString(Type) : null) ?? (("0x" + TypeToken.ToString("x8")))); var parts = new [] { offset, prefixSpec, name, modSpec, operand }; var result = global::XenoGears.Functional.EnumerableExtensions.StringJoin(global::System.Linq.Enumerable.Where(parts, p => global::XenoGears.Functional.EnumerableExtensions.IsNeitherNullNorEmpty(p)), " "); return(result); }
public override XElement ToXmlTree() { XElement result = null; if (!string.IsNullOrEmpty(Value)) { result = new XElement(TypeToken.ToString(), new XAttribute("Value", Value)); } else { result = new XElement(TypeToken.ToString()); } //return new XElement(TypeToken.ToString(), new XAttribute("Value", Value)); return(result); }
public override global::System.String ToString() { var offset = OffsetToString(Offset) + ":"; var prefixSpec = Prefixes.Count == 0 ? "" : ("[" + global::XenoGears.Functional.EnumerableExtensions.StringJoin(Prefixes) + "]"); var name = "cast"; var mods = new global::System.Collections.Generic.List <global::System.String>(); mods.Add(ExpectsUn ? "un" : ""); mods.Add(FailsOnOverflow ? "ovf" : ""); mods.Add(global::System.String.Format("{0}->{1}", ExpectsRefOrVal ? "refval" : (ExpectsRef ? "ref" : (ExpectsVal ? "val" : "???")), YieldsRefOrVal ? "refval" : (YieldsRef ? "ref" : (YieldsVal ? "val" : "???")))); var modSpec = global::XenoGears.Functional.EnumerableExtensions.StringJoin(global::System.Linq.Enumerable.Where(mods, mod => global::XenoGears.Functional.EnumerableExtensions.IsNeitherNullNorEmpty(mod)), ", "); var operand = ((Type != null ? TypeToString(Type) : null) ?? ((_typeToken == 0 ? (Type != null ? TypeToString(Type) : null) : ("0x" + TypeToken.ToString("x8"))))); var parts = new [] { offset, prefixSpec, name, modSpec, operand }; var result = global::XenoGears.Functional.EnumerableExtensions.StringJoin(global::System.Linq.Enumerable.Where(parts, p => global::XenoGears.Functional.EnumerableExtensions.IsNeitherNullNorEmpty(p)), " "); return(result); }