Follow

What is CS1041?

Symptoms

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

error CS1041: Identifier expected

Cause

The CS1041 error is caused when a method does not define a parameter type or parameter name. In the example below we have removed the parameter type "int".

Resolution

To fix the CS1041 error you will need to make sure that both the parameter type and the parameter identifier are defined.

More Information

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