16 lines
273 B
C#
16 lines
273 B
C#
namespace OpenNest.Math
|
|
{
|
|
public static class EvenOdd
|
|
{
|
|
public static bool IsEven(this int i)
|
|
{
|
|
return (i % 2) == 0;
|
|
}
|
|
|
|
public static bool IsOdd(this int i)
|
|
{
|
|
return (i % 2) == 1;
|
|
}
|
|
}
|
|
}
|