rainer-hilmer submitted these extension methods

  • Limit<>

    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.
    C# System.IComparable<T> Rainer Hilmer

 

;