Ejemplo n.º 1
0
 public bool Equals(ImmutableValueClass other)
 {
     return(!ReferenceEquals(other, null) &&
            Id == other.Id &&
            Name == other.Name &&
            Remarks == other.Remarks &&
            ParentId == other.ParentId);
 }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 public int CompareTo(ImmutableValueClass other)
 {
     return(ReferenceEquals(other, null) ? 1 : Id - other.Id);
 }