title: Array not returning max value
body: <p>This is homework, but a small portion...
  I'm trying to return the largest number in an array using <code>arr.MAX();</code> , but I keep on getting zero. </p>
  
  <p>After debugging, I can see that values are being stored (from the user) yet it still returns zero. </p>
  
  <p>The method in question is at the bottom.</p>
  
  <pre><code>Class ElectionUI 
  {
      public void candidateInfo() 
      {
           do
           {
               for (int i = 0; i &lt; theElection.CandidateNames.Length; i++)
               {
                  Console.Write("Please enter the name for Candidate #" + (i + 
                  1) + ": ");
                  theElection.CandidateNames[i] = Console.ReadLine();
                  Console.Write("Please enter the number of votes for: {0}: ", 
                  theElection.CandidateNames[i]);
                  theElection.NumVotes[i] = int.Parse(Console.ReadLine());
                  Console.WriteLine("");
               }
           } while (theElection.NumVotes.Length &lt; 5);
      }
  }
  Class Election 
  {
      private string[] candidateNames = new string[5];
      private int[] numVotes = new int[5];        
          //get/set Candidate Names
          public string[] CandidateNames 
          {
              get { return candidateNames; }
              set { candidateNames = value; }
          }
  
          //Get/Set Candidate votes
          public int[] NumVotes 
          {
              get { return numVotes; }
              set { numVotes = value; }
          }
  
      public void findWinner()
      {
          int max = NumVotes.Max();
              for (var i = 0; i &lt; numVotes.Length; i++)
              {
                  if (NumVotes[i] &gt; max) 
                  {
                      max = NumVotes[i];
                  }
              }
          Console.WriteLine(max);
      }
  }
  </code></pre>