Exemplo n.º 1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="SessionId1">A SessionId.</param>
        /// <param name="SessionId2">Another SessionId.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(Session_Id SessionId1, Session_Id SessionId2)
        {
            if ((Object)SessionId1 == null)
            {
                throw new ArgumentNullException("The given SessionId1 must not be null!");
            }

            return(SessionId1.CompareTo(SessionId2) > 0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="SessionId1">A SessionId.</param>
        /// <param name="SessionId2">Another SessionId.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(Session_Id SessionId1, Session_Id SessionId2)
        {
            // If both are null, or both are same instance, return true.
            if (Object.ReferenceEquals(SessionId1, SessionId2))
            {
                return(true);
            }

            // If one is null, but not both, return false.
            if (((Object)SessionId1 == null) || ((Object)SessionId2 == null))
            {
                return(false);
            }

            return(SessionId1.Equals(SessionId2));
        }
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="SessionId1">A charging session identification.</param>
        /// <param name="SessionId2">Another charging session identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >=(ServiceSession_Id SessionId1,
                                          ServiceSession_Id SessionId2)

        => SessionId1.CompareTo(SessionId2) >= 0;
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="SessionId1">A charging session identification.</param>
        /// <param name="SessionId2">Another charging session identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator !=(ServiceSession_Id SessionId1,
                                          ServiceSession_Id SessionId2)

        => !SessionId1.Equals(SessionId2);
Exemplo n.º 5
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="SessionId1">A charging session identification.</param>
        /// <param name="SessionId2">Another charging session identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >=(CPOPartnerSession_Id SessionId1,
                                          CPOPartnerSession_Id SessionId2)

        => SessionId1.CompareTo(SessionId2) >= 0;
Exemplo n.º 6
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="SessionId1">A charging session identification.</param>
        /// <param name="SessionId2">Another charging session identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator !=(CPOPartnerSession_Id SessionId1,
                                          CPOPartnerSession_Id SessionId2)

        => !SessionId1.Equals(SessionId2);
Exemplo n.º 7
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="SessionId1">A charging session identification.</param>
        /// <param name="SessionId2">Another charging session identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(Session_Id SessionId1,
                                         Session_Id SessionId2)

        => SessionId1.CompareTo(SessionId2) > 0;
Exemplo n.º 8
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="SessionId1">A charging session identification.</param>
        /// <param name="SessionId2">Another charging session identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(Session_Id SessionId1,
                                          Session_Id SessionId2)

        => SessionId1.Equals(SessionId2);
 /// <summary>
 /// Compares two instances of this object.
 /// </summary>
 /// <param name="SessionId1">A charging session identification.</param>
 /// <param name="SessionId2">Another charging session identification.</param>
 /// <returns>true|false</returns>
 public static Boolean operator >(EMPPartnerSession_Id SessionId1, EMPPartnerSession_Id SessionId2)
 => SessionId1.CompareTo(SessionId2) > 0;
 /// <summary>
 /// Compares two instances of this object.
 /// </summary>
 /// <param name="SessionId1">A charging session identification.</param>
 /// <param name="SessionId2">Another charging session identification.</param>
 /// <returns>true|false</returns>
 public static Boolean operator ==(EMPPartnerSession_Id SessionId1, EMPPartnerSession_Id SessionId2)
 => SessionId1.Equals(SessionId2);