ByndyuSoft.Infrastructure.Common.Check.IsNotNull C# (CSharp) Method

IsNotNull() public static method

Check is object null.
public static IsNotNull ( [ obj, [ paramName ) : void
obj [ Object to check
paramName [ Name of object parameter
return void
		public static void IsNotNull([NotNull] object obj, [InvokerParameterName] string paramName)
		{
			if (obj == null)
			{
				throw new ArgumentNullException(paramName, string.Format(CultureInfo.CurrentCulture, "Parameter {0} is null", paramName));
			}
		}
	}