private static abortUnless ( bool condition, string msg ) : void | ||
condition | bool | |
msg | string | |
return | void |
private static void abortUnless(bool condition, string msg)
{
if (!condition)
{
throw new Exception(msg);
}
}