Monday, 10 December 2012

Some JustCode compilation issues (on .NET 4.0 dynamic keyword and method default parameters)

I’m giving JustCode another go and it doesn’t seem to like some .Net 4.0 features (which btw compile ok in VisualStudio):

image

You can see that the JustCode parser didn’t like the Default Parameters, in both method definition:

image

and in method invocation:

image

image

It also doesn’t like the dynamic keyword

image

Fixing issues

Since there are not many of these, lets see if we can fix them all, and get a clean compilation.

One way to deal with method invocation problems like:

image

Is to do the call with the optional parameters:

image

After a while, I was able to fix all issues, except the dynamic ones (which I set to ignore)

image

For reference here are the code changes made during this post

image