Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (27 sloc) 0.8 kb
using System;
namespace PatchIat
{
internal static class Argument
{
public static string NotEmpty(this string argument, string argumentName)
{
if (argument == null)
{
throw new ArgumentNullException(argumentName);
}
if (argument.Length == 0)
{
throw new ArgumentOutOfRangeException(argumentName, "argument cannot be empty");
}
return argument;
}
public static T NotNull<T>(this T argument, string argumentName) where T : class
{
if (argument == null)
{
throw new ArgumentNullException(argumentName);
}
return argument;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.