Beispiel #1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="IdToken1">An id token.</param>
        /// <param name="IdToken2">Another id token.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(IdToken IdToken1, IdToken IdToken2)
        {
            if ((Object)IdToken1 == null)
            {
                throw new ArgumentNullException(nameof(IdToken1), "The given id token must not be null!");
            }

            return(IdToken1.CompareTo(IdToken2) > 0);
        }
Beispiel #2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="IdToken1">A identification token.</param>
        /// <param name="IdToken2">Another identification token.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(IdToken IdToken1,
                                         IdToken IdToken2)

        => IdToken1.CompareTo(IdToken2) > 0;
Beispiel #3
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="IdToken1">A identification token.</param>
        /// <param name="IdToken2">Another identification token.</param>
        /// <returns>true|false</returns>
        public static Boolean operator <=(IdToken IdToken1,
                                          IdToken IdToken2)

        => IdToken1.CompareTo(IdToken2) <= 0;