The left-hand side of an assignment must be a variable, property or indexer
An assignment requires an l-value; check your syntax.
The following sample generates CS0131:
public class MyClass { public int i = 0; public void MyMethod() { i++ = 1; // CS0131 // try the following line instead // i = 1; } public static void Main() { } }