Skip to content

Commit

Permalink
fixed issue with comparison override
Browse files Browse the repository at this point in the history
  • Loading branch information
Denifia committed May 8, 2017
1 parent 8bd4480 commit 1034330
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SendItems/Domain/GameDateTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,17 @@ public override int GetHashCode()
{
return (Compare(left, right) < 0);
}
public static bool operator <=(GameDateTime left, GameDateTime right)
{
return (Compare(left, right) <= 0);
}
public static bool operator >(GameDateTime left, GameDateTime right)
{
return (Compare(left, right) > 0);
}
public static bool operator >=(GameDateTime left, GameDateTime right)
{
return (Compare(left, right) >= 0);
}
}
}

0 comments on commit 1034330

Please sign in to comment.