title: Field is never assigned to, and will always have its default value null (CS0649)
body: <p>I've been searching for answers everywhere and I can't seem to solve mine. Anyone know a solution for this? I'm getting the following errors:</p>
  
  <p>Line 25: Field 'Champion_Item_List_Downloader.MainForm.championsList' is never assigned to, and will always have its default value null (CS0649)</p>
  
  <p>Line 26: Field 'Champion_Item_List_Downloader.MainForm.rolesList' is never assigned to, and will always have its default value null (CS0649)</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Drawing;
  using System.Windows.Forms;
  using System.IO;
  using System.Net;
  using System.ComponentModel;
  
  namespace Champion_Item_List_Downloader
  {
      /// &lt;summary&gt;
      /// Description of MainForm.
      /// &lt;/summary&gt;
      public partial class MainForm : Form
      {
          const string listFile = "Lists.txt";
          private System.Collections.Generic.List&lt;string&gt; championsList;
          private System.Collections.Generic.List&lt;string&gt; rolesList;
  
          public MainForm()
          {
              //
              // The InitializeComponent() call is required for Windows Forms designer support.
              //
              InitializeComponent();
  
              loadList(listFile);
          }
  
          public void loadList(string file){
              try {
                  using (StreamReader r = new StreamReader(file))
                  {
                      string line;
                      bool isChamp = false;
                      while ((line = r.ReadLine()) != null)
                      {
                          if (line == @"[Champions]") {
                              isChamp = true;
                          }
  
                          if(line != @"[Champions]" &amp;&amp; line != @"[Types]" &amp;&amp; line != "")
                          {
                              if(isChamp == true){
                                  championsList.Add(line);
                              } else {
                                  rolesList.Add(line);
                              }
                          }
                      }
                  }
              } catch (Exception) {
              }
          }
  
          public void loadStringList(string file, List&lt;string&gt; list){
              try {
                  using (StreamReader r = new StreamReader(file))
                  {
                      string line;
                      while ((line = r.ReadLine()) != null)
                      {
                          list.Add(line);
                      }
                  }
              } catch (Exception) {
              }
          }
  
          void Btn_DownloadClick(object sender, EventArgs e)
          {
              WebClient webClient = new WebClient();
  
              progressBar.Maximum = championsList.Count * rolesList.Count;
              int count = 0;
              progressBar.Value = 0;
  
              string fileName = "";
              string url = "";
              string path = "";
  
              foreach (string c in championsList)
              {
                  foreach (string r in rolesList)
                  {
                      try {
                          fileName = c + @"_" + r + @"_scrape.json";
                          url = @"http://www.lolflavor.com/champions/" + c + @"/Recommended/" + fileName;
                          path = @"Champions\" + c + @"\Recommended\";
                          Directory.CreateDirectory(path);
                          webClient.DownloadFile(new Uri(url), path + fileName);
                          count++;
                          progressBar.Value = count;
  
                      } catch (Exception) {
                      }
                  }
              }
  
              progressBar.Value = progressBar.Maximum;
  
              MessageBox.Show("Download completed!\n" + count.ToString() + " item lists successfully downloaded.");
          }
  
          void MainFormLoad(object sender, System.EventArgs e)
          {
              throw new NotImplementedException();
          }
      }
  }
  </code></pre>