Book a Demo

Author Topic: C# 4.0 Optional Parameters  (Read 5426 times)

André de Carvalho

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
C# 4.0 Optional Parameters
« on: September 23, 2010, 06:29:18 pm »
C# 4.0 Optional Parameters are not recognised when doing source import.
Example :
private void instantiateModules(Boolean restart = true)
Results in :
There was an error parsing X:(..)\DeviceManagerService.cs on line 169.  Unexpected symbol: =      


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: C# 4.0 Optional Parameters
« Reply #1 on: September 24, 2010, 08:08:46 am »
Yes, C# 4 is not yet supported.  Contact support and they should be able to help you get something working.

benoit.gygax

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: C# 4.0 Optional Parameters
« Reply #2 on: September 28, 2010, 06:22:55 pm »
Hi,
I have the same problem. I have already send a Feature Request to the support, but without response!

André, do you have any response from the support?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: C# 4.0 Optional Parameters
« Reply #3 on: September 29, 2010, 08:41:01 am »
Quote
Hi,
I have the same problem. I have already send a Feature Request to the support, but without response!

André, do you have any response from the support?
Feature requests we read and store for future reference, and we often even implement them, but we don't usually reply to them. If you want a reply from support, please use the bug report or support request form.
The Sparx Team
[email protected]

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: C# 4.0 Optional Parameters
« Reply #4 on: September 30, 2010, 02:31:40 am »
Hi Neil,

IIRC, there was an XML code template file you lot at Sparx sent me a while back that enabled import of optional parameters from C# 4.0. Is that still available?
Fred Woolsey
Interfleet Technology Inc.

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