Exemple #1
0
        /// <summary>
        /// Compares two ServiceTicket identifications for equality.
        /// </summary>
        /// <param name="ServiceTicketChangeSetReference">A service ticket identification to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(ServiceTicketChangeSetReference ServiceTicketChangeSetReference)
        {
            if ((Object)ServiceTicketChangeSetReference == null)
            {
                return(false);
            }

            return(Id.Equals(ServiceTicketChangeSetReference.Id));// &&
//                   Status.Equals(ServiceTicketChangeSetReference.Status);
        }
Exemple #2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="ServiceTicketChangeSetReference">An object to compare with.</param>
        public Int32 CompareTo(ServiceTicketChangeSetReference ServiceTicketChangeSetReference)
        {
            if ((Object)ServiceTicketChangeSetReference == null)
            {
                throw new ArgumentNullException(nameof(ServiceTicketChangeSetReference), "The given ServiceTicketChangeSetReference must not be null!");
            }

            // Compare ServiceTicket Ids
            var _Result = Id.CompareTo(ServiceTicketChangeSetReference.Id);

            //// If equal: Compare ServiceTicket status
            //if (_Result == 0)
            //    _Result = Description.CompareTo(ServiceTicketChangeSetReference.Description);

            return(_Result);
        }