private void EnumerableTest() { ValueList <CustomValue> a = new ValueList <CustomValue>(); a.Add(new CustomValue() { B = true, F = 2.1f, I = 3 }); a.Add(new CustomValue() { B = false, F = 2.2f, I = 2 }); a.Add(new CustomValue() { B = true, F = 2.3f, I = 1 }); IRefEnumerator <CustomValue> e = a.GetEnumerator(); CustomValue v = default(CustomValue); e.Reset(); while (e.MoveNext(ref v)) { Debug.Log(v.ToString()); } e.Dispose(); e = null; }
public override string ToString() { return(Name + "=" + number + " [" + (child == null ? null : child.ToString()) + "]"); }