Book a Demo

Author Topic: Generating VB.Net code with #REGION  (Read 2676 times)

sekhar_aripaka

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love EA!!!
    • View Profile
Generating VB.Net code with #REGION
« on: June 25, 2007, 06:06:41 pm »
I've a class containing 10 private attributes and 1 property for each attribute. I want to generate a VB.Net code that adds ...
#Region "Attributes"
...<attribute declaration goes here>...
#End Region

and

#Region "Properties"
...<Property definition goes here>...
#End Region

This will help in hiding the code that I'm not intended to touch during coding, esp when I've huge list of attributes/properties.

Is there any way to achieve this using EA?

Thank you in advance,
Sekhar
Thanks in advance,
Sekhar Aripaka

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generating VB.Net code with #REGION
« Reply #1 on: June 25, 2007, 07:30:38 pm »
You'll need to modify the code templates.

The list of attributes will be easy to surround, properties you'll need to add a condition to the operations list.

This has been discussed on the board before.  Doing a search could make updating your templates easier.