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

Created at 01 Dec 2016, 18:20
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
lec0456's avatar

lec0456

Joined 14.11.2012

Error CS1518: Expected class, delegate, enum, interface, or struct
01 Dec 2016, 18:20


When I try to build the cbot I get the following eror:

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

 

What do I do?


@lec0456
Replies

cyfer
01 Dec 2016, 18:36

Impossible to tell without code , but this is usually due to declaring methods, variables etc outside of any Class . 

after the opening Bracket of the name space you declared a global variable for example ? 


@cyfer

lec0456
01 Dec 2016, 19:06

Oh, boy!  Sorry this was a stupid question.  I had just installed cAlgo on a new system and I just assumed it was an installation issue or referencing the .Net framework.

Nope, it was a currly bracket. I should have done a little dilligence. 


@lec0456