public static SimpleRef <String>[] GetSimpleStrings(int count) { SimpleRef <String>[] strings = new SimpleRef <String> [count]; for (int i = 0; i < count; i++) { strings[i] = new SimpleRef <String>(i.ToString()); } return(strings); }
public static SimpleRef <int>[] GetSimpleInts(int count) { SimpleRef <int>[] ints = new SimpleRef <int> [count]; for (int i = 0; i < count; i++) { ints[i] = new SimpleRef <int>(i); } return(ints); }
public override bool Equals(Object obj) { try { SimpleRef <T> localTestVar = (SimpleRef <T>)obj; if (_valField.Equals(localTestVar.Val)) { return(true); } else { return(false); } } catch { return(false); } }
public bool Equals(SimpleRef <T> obj) { return(0 == CompareTo(obj)); }
public int CompareTo(SimpleRef <T> obj) { return(_valField.CompareTo(obj.Val)); }