Well this is the code I’m having errors with:
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]);
}
}
I get 3 errors with this code, first one:
Error 1 Operator ‘<‘ cannot be applied to operands of type ‘int’ and ‘System.Collections.Generic.List’
Second one:
Error 2 Operator ‘%’ cannot be applied to operands of type ‘System.Collections.Generic.List’ and ‘int’
Third one:
Error 3 Invalid expression term ‘==’
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.
You are doing some operations on a list. I’m quite sure, you should your lines as follows…
and
instead