Repository navigation
Parameter validation - 1.3.1
This release includes some changes to how parameters are copied with FromOther() and allows you to now validate parameters to make sure users don't explode their ears.
- Changed
FromOther<T>(T zita, IZitaFilter other)toFromOther<TFrom, TTo>(TFrom zita, TTo other) instead of always requiring an object of typeIZitaFilter`.- This allows you to avoid boxing should you decide to use something like the
ZitaParametersstruct with it now.
- This allows you to avoid boxing should you decide to use something like the
- Added
EnsureValidParameters()extension method so that you can validate input parameters given to anIZitaFiltertype.- Also adds
EnsureValidNum()extension method to validate floats with an optional fallback value.
- Also adds
Enjoy!