Follow

What is CS0131?

Symptoms

When trying to enter play mode, I am receiving the error below:

error CS0131: The left-hand side of an assignment must be a variable, a 
property or an indexer

Cause

The CS0131 error is caused when the = assignment operator does not have a variable, property or indexer to the left hand side of it.

 

Here is how the error appears in this example:

error CS0131: The left-hand side of an assignment must be a variable, a 
property or an indexer

Resolution

The error CS0131 is resolved by adding a variable, property or indexer to the left hand side of the = assignment operator.

More Information

https://msdn.microsoft.com/en-us/library/x5s08de8(v=vs.90).aspx

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.