Book a Demo

Author Topic: EA 8.0 Beta 1 and C# default param values  (Read 3671 times)

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
EA 8.0 Beta 1 and C# default param values
« on: February 19, 2010, 10:58:13 am »
All,

While this may be jumping ahead a bit (after all, VS 2010 and .NET 4.0 are still in the RC phase) I thought it would be good to bring it up since 8.0 is still in beta...

EA reports the following error when importing C# code with default method parameter values:

Quote
There was an error parsing C:\Users\fred\Documents\Visual Studio 2010\Projects\SpecifyxDocumentConverter\SpecifyxRtfDocument\BaseClasses\RtfElement.cs on line 59.  Unexpected symbol: =      
The corresponding code is:
Code: [Select]
public  virtual bool FromRtfAll(ParseType parseType = ParseType.Basic)
{
      return false;
}
I realize this is a recent addition to C#, but it would be great if Sparx could include C# 4.0 code features in the 8.0 release (or "soonly" thereafter). I should note that VS 2010 is set for an April 2010 release.

Cheers,
Fred W
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA 8.0 Beta 1 and C# default param values
« Reply #1 on: February 19, 2010, 11:49:33 am »
Send a support request into Sparx Systems asking about C# 4 and we should be able to send a technology with updates to the grammar and code templates that will allow current versions of EA to parse and generate it.