MathExtensions.ResetIfGreaterThan(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the value to zero if greater than the specified amount.
public:
[System::Runtime::CompilerServices::Extension]
static int ResetIfGreaterThan(int value, int amount);
public static int ResetIfGreaterThan (this int value, int amount);
static member ResetIfGreaterThan : int * int -> int
<Extension()>
Public Function ResetIfGreaterThan (value As Integer, amount As Integer) As Integer
Parameters
- value
- Int32
- amount
- Int32