public static AssertParameter ( string paramName, string description, bool condition ) : void | ||
paramName | string | |
description | string | |
condition | bool | |
return | void |
public static void AssertParameter(string paramName, string description, bool condition)
{
if (!condition)
{
throw new ArgumentException(description, paramName);
}
}
}