Book a Demo

Author Topic: Generate Getters and Setters methods in C# class  (Read 3358 times)

lets

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Generate Getters and Setters methods in C# class
« on: May 10, 2011, 10:19:42 pm »
Good morning.
I'm having problems getting generate getter and setter methods from a C # class. Not meeting Gets and Sets the options in any way.

May assist me in this, please?

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Generate Getters and Setters methods in C# cla
« Reply #1 on: May 10, 2011, 11:29:01 pm »
If I understand you correctly, do the following

1) Select an attribute in your class
2) Select the checkbox labelled "Property"
3) When the dialog displays select C++ as the language and select he Read (Get) Write (Set) combination and click OK

Cheers

Phil
Models are great!
Correct models are even greater!

lets

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Generate Getters and Setters methods in C# cla
« Reply #2 on: May 11, 2011, 12:06:09 am »
Phil,

Perfect your answer. Thanks a lot.