src/Pess.Data/Identity/UserId.cs
/// <summary>
/// Private helper method for comparing two nullable <see cref="UserId"/> values.
/// </summary>
/// <param name="a">First nullable value of <see cref="UserId"/></param>
/// <param name="b">Second nullable value of <see cref="UserId"/></param>
/// <returns>True if two <see cref="UserId"/> values are not equal. False otherwise.</returns>
Private helper method for comparing two nullable  values.
Private helper method for comparing two nullable values .
private static bool CompareNullableWithNullable(UserId? a, UserId? b)
        {
            if (!a.HasValue && !b.HasValue)
                return true;
            if (a.HasValue)
                return a.Value == b;
            return b.Value == a;
        }
private static bool CompareNullableWithNullable ( UserId ? a , UserId ? b ) { if ( ! a . HasValue && ! b . HasValue ) return true ; if ( a . HasValue ) return a . Value == b ; return b . Value == a ; }
Private helper method for comparing two nullable  values.
Private helper method for comparing two nullable values .
// if neither has value, they are both null and therefore are equal.
True if two  values are not equal. False otherwise.
True if two values are not equal . False otherwise .
a
UserId?
First nullable value of
First nullable value of
b
UserId?
Second nullable value of
Second nullable value of