Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: decimal Clip(this decimal, decimal, decimal)

Declaration

public static decimal Clip(
    this decimal value,
    decimal minimumValue,
    decimal maximumValue
)

Summary

Clips this value to the range defined by minimumValue and maximumValue. The returned number will be no less than the minimum value and no greater than the maximum value. Throws an exception if min value is greater than the max value.