Follow

What is CS0165?

Symptoms

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

error CS0165: Use of unassigned local variable `___'

Cause

The CS0165 error is caused when a variable created within a method is not assigned with a value using the new keyword.

Here is how the error appears in this example:

error CS0165: Use of unassigned local variable `tempList'

Resolution

The error CS0165 is resolved by assigning the local variable with a new instance of it's type or as a reference to a variable of the same type.

More Information

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