ShortExtensions.IsEven
Extension Method in ShortExtensions
Declaration
public static bool IsEven(this short n)Description
Checks if the number is even. n % 2 == 0
Parameters
| n | The number to check. |
Returns
| bool | True if the number is even. |
public static bool IsEven(this short n)Checks if the number is even. n % 2 == 0
| n | The number to check. |
| bool | True if the number is even. |