Follow

What is CS0219

Symptoms

The following warning is appearing in the console:

warning CS0219: The variable `___' is assigned but its value is never 
used

Cause

The CS0219 warning is presented when a local variable (created within a method) is assigned with a value but the value is not used in any of the scripts in the project.

Here is how the error appears in this example:

warning CS0219: The variable `___' is assigned but its value is never 
used

Resolution

The error CS0219 is resolved by using the variable in the script or by deleting it entirely.

More Information

https://msdn.microsoft.com/en-us/library/4kycwe2x(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.