public override bool Equals(object obj) { if (obj is RefX1 <T> ) { RefX1 <T> v = (RefX1 <T>)obj; return(CompareTo(v) == 0); } return(false); }
public RefX1 <int>[] MakeRefX1ArrayInt(int[] items) { RefX1 <int>[] arr = new RefX1 <int> [items.Length]; for (int i = 0; i < items.Length; i++) { arr[i] = new RefX1 <int>(items[i]); } return(arr); }
public int CompareTo(RefX1 <T> obj) { if (null == obj) { return(1); } if (null == _val) { if (null == obj.Val) { return(0); } else { return(-1); } } return(_val.CompareTo(obj.Val)); }
public bool Equals(RefX1 <T> x) { return(0 == CompareTo(x)); }