Book a Demo

Author Topic: Getter / Setter  (Read 3297 times)

AZeitler

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Getter / Setter
« on: July 26, 2003, 02:41:48 pm »
hi,

i have a property called "Name" and a string named _Name.
Now i want to get the property like this:

public string Name
{
     get
     {
     return _Name;
     }
}

but when doing this through EA's code generation i get this one:

public string Name
{
     get
     {
     return Name;
     }
}

is it possible to produce the first version with EA's code generation?

regards

Alexander Zeitler