It's often the case when I need to check a method's arguments for not being null, something like:
public static bool operator <=
(ApplicationVersion i_app1, ApplicationVersion i_app2)
{
if (i_app1 == null) throw new ArgumentNullException("i_app1");
if (i_app2 == null) throw new ArgumentNullException("i_app2");
[...]
}
Is there a way to do this (semi)automatically, like Code snippets? Autocomplete? Resharper?