title: How can I fix these errors in C#?
body: <p>Well this is the code I'm having errors with:</p>
  
  <pre><code>this.terminchar = Convert.ToChar(8080);    
  List&lt;string&gt; source = new List&lt;string&gt;(this.base64Decode(parse_value).Split(new char[] { this.terminchar }));
  
  if ((source) % 2) == 0)
  {
    for (int i = 0; i &lt; source; i++)
    {
      this.keys.Add(source[i], source[++i]);
    }
  }
  </code></pre>
  
  <p>I get 3 errors with this code, first one:</p>
  
  <blockquote>
    <p>Error  1   Operator '&lt;' cannot be applied to operands of type 'int' and 'System.Collections.Generic.List'</p>
  </blockquote>
  
  <p>Second one:</p>
  
  <blockquote>
    <p>Error  2   Operator '%' cannot be applied to operands of type 'System.Collections.Generic.List' and 'int'</p>
  </blockquote>
  
  <p>Third one:</p>
  
  <blockquote>
    <p>Error  3   Invalid expression term '=='</p>
  </blockquote>
  
  <p>I'm fairly new to C# and this is my friends source code which I'm just looking at to understand the syntax but I have no idea what to do. Any help given would be appreciated, thanks.</p>