/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="ChargeDetailRecord">An object to compare with.</param> public Int32 CompareTo(ChargeDetailRecord ChargeDetailRecord) { if ((Object)ChargeDetailRecord == null) { throw new ArgumentNullException(nameof(ChargeDetailRecord), "The given charge detail record must not be null!"); } return(ServiceSessionId.CompareTo(ChargeDetailRecord.ServiceSessionId)); }