c# validate string input : <p>i ve written the following method that will do several validation checks on 
an input string, the problem i have is with checking if the string containts any of the "invalid characters". See below.</p>

<pre><code>public static bool ValidateString(string string1)
    {
        // Check for length
        if (string1.Length &gt; 100)
        {
            Console.WriteLine("String too Long");
            return false;
        }
        else if (!(!string1.Equals(string1.ToLower())))
        {
            //Check for min 1 uppercase
            Console.WriteLine("Requres at least one uppercase");
            return false;
        }
        else if (check for presence of invalid characters)
        {
        }
        else 
        {
                Console.WriteLine("All tests succesful");
                return true;
        }
    }
</code></pre>

<p>Invalid characters would be : !@#$%^&amp;*()-</p>

<p>Thanks in advance!</p>
