All C# extension methods for type icomparable-t
Limits a value to a maximum. For example this is usefull if you want to feed a progressBar with values from a source which eventually might exceed an expected maximum. This is a generic extension method with IComparable<T> constraint. So every type which implements the IComparable interface benefits from this extension.
Returns a boolean value of true if the item being compared is less than the value of the parameter.
Works on Comparables to check whether the checked value is between two other values. Check relaifciotn.net -> extension methods for more details.
Many times you may wish to impose boundaries on what a certain variable can be. This is especially useful for validating user input. For any comparable, it simply returns the value, truncated by a minimum or maximum