forum

home / developersection / forums / check for any item in string array?

check for any item in string array?

David Miller 1972 21-Dec-2014
static void Main(string[] args)
{
    if (args[0].ToUpper().Equals("DOWNLOADPOS"))
    {
        DownloadPOS();
    }

will run DownloadPOS(), if the first item in args is downloadpos, I would like to check against all the items in args?? please advise? 

I was previously using: 

//if (args.Contains(pos))

//{

//    DownloadPOS();

//}

but then wasnt sure how to sure the upper on it 

thanks


Updated on 22-Dec-2014
David Miller

Other


Message
Can you answer this question?

Answer

2 Answers

Liked By