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