public bool Equals(ImmutableValueClass other) { return(!ReferenceEquals(other, null) && Id == other.Id && Name == other.Name && Remarks == other.Remarks && ParentId == other.ParentId); }
public int CompareTo(object obj) { if (ReferenceEquals(obj, null)) { return(1); } ImmutableValueClass other = obj as ImmutableValueClass; if (ReferenceEquals(other, null)) { throw new ArgumentException("obj is not a ImmutableValueClass", "obj"); } return(CompareTo(other)); }
public int CompareTo(ImmutableValueClass other) { return(ReferenceEquals(other, null) ? 1 : Id - other.Id); }