Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I keep receiving this error, when I am trying to create a method called static void Display, what does it mean.

Error 1 Expected class, delegate, enum, interface, or struct
Posted
Updated 19-May-11 21:57pm
v2
Comments
CS2011 20-May-11 4:02am    
Can you post the block of code which is giving the error ?

Read this.[^]
You probably will get some hints from it.
 
Share this answer
 
It means "Stop programming using trial and error method — it leads you nowhere".

Honestly, read all about language and at least very basics of the platform, spend just few days.
You did not even provide enough of your code to show the issue.

—SA
 
Share this answer
 
Comments
thatraja 20-May-11 13:54pm    
Have a Counter 5.
Sergey Alexandrovich Kryukov 20-May-11 14:29pm    
Thank you very much.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900