Skip to content

Instantly share code, notes, and snippets.

@pedroreys
Created June 20, 2012 16:35
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 pedroreys/2960825 to your computer and use it in GitHub Desktop.
Save pedroreys/2960825 to your computer and use it in GitHub Desktop.
Null Action
public class NullAction
{
public static readonly Action DoNothing = () => { };
}
//This allows you to do (callback ?? NullAction.DoNothing)() instead of (callback ?? () => { })()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment