title: How to know if a string length contains a specified amount of capped letters
body: <p>I'm trying to know if a string contains a length between 5 and 10 and at the same time, 7-10 letters are in upper case. The idea is to detect if a message sent by a user is 70%-100% capped.</p>
  
  <p>This is what I have tried so far:</p>
  
  <pre class="lang-cs prettyprint-override"><code>bool IsMessageUpper(string input)
  {
      if (input.Length.Equals(5 &lt;= 10) &amp;&amp; (input.Take(7).All(c =&gt; char.IsLetter(c) &amp;&amp; char.IsUpper(c))))
      {
           return true;
      }
      else
      {
           return false;
      }
  }
  </code></pre>