Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CS1518: Expected class, delegate, enum, interface, or struct

Status
Not open for further replies.

thompom

Technical User
Dec 4, 2006
395
GB
Hi - am a classic asp coder trying .net for first time
As a starting project am creating a web service from instruction
have copied example exactly but get following error:
Code:
Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct

Source Error:

Line 29: }
Line 30: 
Line 31: public int GetProduct(int a, int b)
Line 32: {
Line 33:     return a * b;

please help a .net newbe
 
Hi - fixed, didnt include public int inside compositetype
as a 10 year asp user - this aint half weird not knowing whats wrong
wish me luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top