Book a Demo

Author Topic: template c# class/operation/property  (Read 2470 times)

Martin_Knotek

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
template c# class/operation/property
« on: September 30, 2007, 06:42:55 am »
Hi,

I need to change code genarating template for c#:

Class - operation -stereotype/property.

this is standart otput:
public int ArticleParamID
{
get{
return nArticleParamID;
}
set{
nArticleParamID = value;
}
}

im trying put keyword this in the body, to get result like this:

public int ArticleParamID
{
get{
return this.nArticleParamID;
}
set{
this.nArticleParamID = value;
}
}

Bud i cant find any place or template file, where is this part of property generation.

Ithing it is an Operation body template? Bud get/set string is only in Attribute Declaration template.

Thx a lot

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: template c# class/operation/property
« Reply #1 on: September 30, 2007, 01:08:07 pm »
Look at the Stereotype override "property" for the template "Operation Body".

Martin_Knotek

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: template c# class/operation/property
« Reply #2 on: October 01, 2007, 12:39:20 am »
thx a lot!