Book a Demo

Author Topic: Error when try to import source file (c# Attribute)  (Read 3685 times)

juan.drn

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Error when try to import source file (c# Attribute)
« on: March 22, 2018, 12:30:59 am »
When I Try to parse source file or import source file to generate a class, this throw an error that say "Unexpected symbol: >" and the line contain

Code: [Select]
public double DurationInSeconds => this.Duration;
How to fix the error, whitout to change to :

Code: [Select]
public double DurationInSeconds { get { return this.Duration;}}
Best regards
Thanks,

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Error when try to import source file (c# Attribute)
« Reply #1 on: March 22, 2018, 12:37:25 am »
Report to Sparx and wait for them to implement this syntax (C# v6?)

Or you could build your own grammar file for C# I guess, but that doesn't really seem worth the effort.

Geert