/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="CertificateId1">A certificate identification.</param> /// <param name="CertificateId2">Another certificate identification.</param> /// <returns>true|false</returns> public static Boolean operator >(Certificate_Id CertificateId1, Certificate_Id CertificateId2) { if ((Object)CertificateId1 == null) { throw new ArgumentNullException(nameof(CertificateId1), "The given CertificateId1 must not be null!"); } return(CertificateId1.CompareTo(CertificateId2) > 0); }
/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="CertificateId1">A certificate identification.</param> /// <param name="CertificateId2">Another certificate identification.</param> /// <returns>true|false</returns> public static Boolean operator ==(Certificate_Id CertificateId1, Certificate_Id CertificateId2) { // If both are null, or both are same instance, return true. if (Object.ReferenceEquals(CertificateId1, CertificateId2)) { return(true); } // If one is null, but not both, return false. if (((Object)CertificateId1 == null) || ((Object)CertificateId2 == null)) { return(false); } return(CertificateId1.Equals(CertificateId2)); }