title: what is the fastest way to check whether string has uppercase letter in c#?
body: <p>My first implementation idea is to do simply:</p>
  
  <pre><code>bool hasUpperCase (string str) {
      if(string.IsNullOrEmpty(str))
           return false;
      for (int i = 0; i &lt; str.Length; i++) {
          if (char.IsUpper (str[i]))
              return true;                    
      }
      return false;
  }
  </code></pre>
  
  <p>but maybe there is another faster way to do that ?</p>