Skip to content

Instantly share code, notes, and snippets.

@carlosschults
Created December 21, 2017 01:31
Show Gist options
  • Save carlosschults/d6ec153b7274ac699634d5dadb2e9644 to your computer and use it in GitHub Desktop.
Save carlosschults/d6ec153b7274ac699634d5dadb2e9644 to your computer and use it in GitHub Desktop.
c#8features-1
public static class IntExtensions
{
public static bool Even(this int value)
{
return value % 2 == 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment