public override string ToString() { IntPtr raw_ret = gst_bin_iterate_sorted(raw); Iterator ret = raw_ret == IntPtr.Zero ? null : (Iterator)OldGLib.Opaque.GetOpaque(raw_ret, typeof(Iterator), false); IEnumerator e = ret.GetEnumerator(); if (e == null) { return("null"); } StringBuilder res = new StringBuilder(); while (e.MoveNext()) { if (e.Current != null) { GstObject o = new GstObject((IntPtr)(e.Current)); if (o != null) { res.Append(o.GetPathString()); res.Append("!"); } } } return(res.ToString().Trim('!').Replace("!", " ! ")); }
public override string ToString () { IntPtr raw_ret = gst_bin_iterate_sorted (raw); Iterator ret = raw_ret == IntPtr.Zero ? null : (Iterator) GLib.Opaque.GetOpaque (raw_ret, typeof (Iterator), false); IEnumerator e = ret.GetEnumerator (); if (e == null) return "null"; StringBuilder res = new StringBuilder (); while (e.MoveNext()) { if (e.Current != null) { GstObject o = new GstObject ((IntPtr)(e.Current)); if (o != null) { res.Append (o.GetPathString ()); res.Append ("!"); } } } return res.ToString ().Trim ('!').Replace ("!", " ! "); }