Beispiel #1
0
        /// <summary>
        /// Determines whether the two Guid values are equal.
        /// </summary>
        /// <param name="v1">The first value to compare.</param>
        /// <param name="v2">The second value to compare.</param>
        public static bool IsEqual(Nullable <Guid> v1, Guid v2)
        {
            if (v1 == null)
            {
                return(false);
            }

            return(Comparers.GuidEqual((Guid)v1, v2));
        }
Beispiel #2
0
        /// <summary>
        /// Determines whether the two Guid values are equal.
        /// </summary>
        /// <param name="v1">The first value to compare.</param>
        /// <param name="v2">The second value to compare.</param>
        public static bool IsEqual(Guid v1, Nullable <Guid> v2)
        {
            if (v2 == null)
            {
                return(false);
            }

            return(Comparers.GuidEqual(v1, (Guid)v2));
        }
Beispiel #3
0
 /// <summary>
 /// Determines whether the two Guid values are equal.
 /// </summary>
 /// <param name="v1">The first value to compare.</param>
 /// <param name="v2">The second value to compare.</param>
 public static bool IsEqual(Guid v1, Guid v2)
 {
     return(Comparers.GuidEqual(v1, v2));
 }