Skip to content

Instantly share code, notes, and snippets.

@jessemcdowell
Created April 30, 2011 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessemcdowell/949422 to your computer and use it in GitHub Desktop.
Save jessemcdowell/949422 to your computer and use it in GitHub Desktop.
LinqAverage
int LinqAverage(int a, int b)
{
int[] inputArray = new int[] { a, b };
return (int)inputArray.Average();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment