Open GUOLDEV opened 3 years ago
IsInRangeConverter?
@AndreiMisiukevich great name idea! I like that.
If we need type-specific converters, it can be, for example, IsDateTimeInRangeConverter...
I guess a single converter can be implemented for all IComparable types
@AndreiMisiukevich @jfversluis I have created a PR for this issue, once it is approved I will finalize the missing parts, such as documentation, etc.
Summary
I would like to implement a new converter
IsInRangeConverter
, that returnstrue
orfalse
checking if the passed value is between a minValue and maxValue, it can be a DateTime, Int, Double, etc. It can be any IComparable type.I have created a PR just to exemplify the concept and added UnitTests to give a better idea of how it is going to work.
API Changes
NA
Intended Use Case
Who Will Do The Work?