Monday, May 24, 2010

Microsoft visual C# 2005 E.E?

"Type or namespace definition, or end-of-file expected"


Does anyone know how to fix this error in my code?


(i'm new to this and i'm trying to create a web browser)

Microsoft visual C# 2005 E.E?
The smart money is on a bracket problem. Especially since he's a newbie (it still happens to everyone though).





There should be an even number of left-brackets ( { ) and right-brackets ( } ). That's probably what's going on.
Reply:Is this a file with a class or interface declaration? If so, are your brackets paired off correctly? Do you have a rogue using declaration somewhere the compiler is expecting a namespace? Have you declared a variable of an unknown type, or a type that does not exist in the using declarations at the top of the file?





Do you have a context in which this is happening?


No comments:

Post a Comment