title: byte[] does not contain a definition for SequenceEqual authentication method
body: <p>Can anyone help with some problems I have. I am trying to create an self made authentication method, im abit stuck in a few areas and was hoping some one could help. First thing I would like to ask is how to solve the problem I have commented in the code:</p>
  
  <pre><code>    public string Authentication(string studentID, string password)
      {
          var result = students.FirstOrDefault(n =&gt; n.StudentID == studentID);
          //find the StudentID that matches the string studentID 
          if (result != null)
          //if result matches then do this
          {
              //---------------------------------------------------------------------------- 
              byte[] passwordHash = Hash(password, result.Salt);
              string HashedPassword = Convert.ToBase64String(passwordHash);
              //----------------------------------------------------------------------------
              // take the specific students salt and generate hash/salt for string password (same way student.Passowrd was created)
  
              System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
              byte[] UserPassword = enc.GetBytes(HashedPassword);
              UserPassword.SequenceEqual(result.Password); // byte[] does not contain a definition for SequenceEqual?
              //check if the HashedPassword (string password) matches the stored student.Password
          }
          return result.StudentID; 
          //if string password(HashedPassword)  matches stored hash(student.Passowrd) return student list 
  
  
          //else return a message saying login failed 
      }
  </code></pre>