如何在C#中修复这些错误?

Nee*_*eel 0 .net c# compiler-errors

那么这是我遇到错误的代码:

this.terminchar = Convert.ToChar(8080);    
List<string> source = new List<string>(this.base64Decode(parse_value).Split(new char[] { this.terminchar }));

if ((source) % 2) == 0)
{
  for (int i = 0; i < source; i++)
  {
    this.keys.Add(source[i], source[++i]);
  }
}
Run Code Online (Sandbox Code Playgroud)

我在这段代码中遇到3个错误,第一个错误:

错误1运算符'<'不能应用于'int'和'System.Collections.Generic.List'类型的操作数

第二个:

错误2运算符'%'不能应用于'System.Collections.Generic.List'和'int'类型的操作数

第三个:

错误3无效的表达式术语'=='

我是C#的新手,这是我的朋友源代码,我只是想了解语法,但我不知道该怎么做.任何给予的帮助将不胜感激,谢谢.

lep*_*pie 6

您可能.Count在两种情况下都在寻找房产.

所以使用source.Count.