CS1525

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Editor > Compile Error Codes >

CS1525

Previous page Return to chapter overview Next page

The following CS1525 error code information is provided within the context of NinjaScript. The examples provided are only a subset of potential problems that this error code may reflect. In any case, the examples below provide a reference of coding flaw possibilities.

 

Error Code Explanation

The compiler detected an invalid character in an expression.

 

Error Description #1
{ expected

 

// Erroneous Sample Code - If statement is not opened
protected override void OnBarUpdate()
{
  if(IsFirstTickOfBar)      
}

 

// Resolution Sample Code - If statement is open and closed

protected override void OnBarUpdate()
{
  if (IsFirstTickOfBar)
  {
    // do something
  }
}