MathExtensions.ResetIfGreaterThan(Int32, Int32) Method

Definition

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

Returns

Applies to