public int CompareTo(CSGenericType <T> other) { if (other == null) { return(1); } return(string.Compare(this.ToString(), other.ToString())); }
public bool Equals(CSGenericType <T> other) { if (other == null) { return(false); } if (Value == null && other.Value == null) { return(true); } if (Value == null && other.Value != null) { return(false); } if (Value != null && other.Value == null) { return(false); } return(Value.Equals(other.Value)); }