Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static int Clip(
    this int value,
    int minimumValue,
    int 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.