Skip to content

Commit

Permalink
refactor(ES.FX): convert IsExact property to method in ValueRange
Browse files Browse the repository at this point in the history
- Changed the `IsExact` property in the `ValueRange` class to a method. This change improves readability and consistency with other similar functionalities.
  • Loading branch information
winromulus committed Oct 26, 2024
1 parent 1600d93 commit 65ab6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ES.FX/Primitives/ValueRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ValueRange(T min, T max)
public T Min { get; init; }
public T Max { get; init; }

public bool IsExact => Min.CompareTo(Max) == 0;
public bool IsExact() => Min.CompareTo(Max) == 0;

public bool IsInRange(T value) => value.CompareTo(Min) >= 0 && value.CompareTo(Max) <= 0;

Expand Down

0 comments on commit 65ab6b6

Please sign in to comment.