title: Cannot implicitly convert type "int" to "bool"
body: <p>This my function</p>
  
  <pre><code>public string getMD5hash(string input)
  {
      //create a new instance of MD5 object
      MD5 md5Hasher = MD5.Create(); 
      //convert the input value to byte array
      byte[] data = md5Hasher.ComputeHash(Encoding.Default.GetBytes(input));
      StringBuilder sBuilder = new StringBuilder();
  
      for (int i = 0; data.Length -1 ; i++)
      {
          sBuilder.Append(data[i].ToString("x2"));
      }
      return sBuilder.ToString();
  }
  </code></pre>
  
  <p>I get an error in <code>data.Length</code> that cannot implicitly convert type "int" to "bool"</p>