Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: majorbenks on May 01, 2013, 10:17:32 pm

Title: Code Generation Problem with .NET Attributes
Post by: majorbenks on May 01, 2013, 10:17:32 pm
I created a model and generated VB.NET Code from it. Then I changed the code in Visual Studio by adding Attributes (not talking about instance variables, talking about these .NET Attributes, similar to annotations in java. See example at the end.). When I wanted to reverse engineer I got this error: "Unexpected symbol: <<NEW LINE>>
Is there a way to solve this?

Thanks,
majorbenks

Example of .NET Attributes:

<ServiceContract()>
    Public Interface IPersonService

        <OperationContract()>
        Sub SearchPersons()

    End Interface
Title: Re: Code Generation Problem with .NET Attributes
Post by: majorbenks on May 04, 2013, 07:27:54 pm
Is it maybe possible just to ignore lines beginning with <? Maybe within the template settings? It would be ok to just ignore attribute classes.