Check Argument Class Download

DOWNLOAD/LIVE PREVIEW

Check Argument Class Download

Open supply assist class to examine arguments of a way.
This class C#.NET is used to examine the arguments that arrive at a way, validating them.
It’s an open supply class, so you’ll be able to lengthen its performance utilizing present strategies for example.
To make use of it, please notice the next instance:
static void Foremost(string[] args)
{
//CheckArgumentTest
string title = “john”;
int age = -1;
string electronic mail = “celeru@hotmail”;
bool ret = CheckArgumentTest(title, age, electronic mail);
}

non-public static bool CheckArgumentTest(string title, int age, string electronic mail)
{
    bool ret;
    attempt
    {
        Verify.Argument.IsNotEmpty(title, "title"); //CheckArgument Instance
        Verify.Argument.IsNotOutOfRange(age, 18, 99, "age"); //CheckArgument Instance
        Verify.Argument.IsNotValidEmail(electronic mail, "electronic mail"); //CheckArgument Instance
        ret = true;
    }
    catch (Exception ex)
    {
        Console.WriteLine(ex.Message);
        ret = false;
    }
    return ret;
}

DOWNLOAD/LIVE PREVIEW
Source

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.