Add region for "Check Parameter for Null" feature

Hi

Is it possible to add an option to automaticaly wrap parameters null check inside a region ? Sample:

From      

if (a == null)
{
  throw new ArgumentNullException(nameof(a));
}

if (b == null)
{
  throw new ArgumentNullException(nameof(b));
}

To
 
#region Arguments validation

if (a == null)
{
  throw new ArgumentNullException(nameof(a));
}

if (b == null)
{
  throw new ArgumentNullException(nameof(b));
}

#endregion
 
That could let us focus on the body of functions.
0

Please sign in to leave a comment.