Wednesday, March 08, 2006

Partial Classes - Adding a new method from the class designer

Yesterday during the Southern Colorado .Net User Group, a question came regarding adding methods to a particular partial class. This is how it is done.

  1. Right-Click on the heading of the partial class in the class diagram and choose Properties.
  2. Change the New Member Location property to the file you want to add to.
  3. Add your method, property, etc. It will now go to the appropriate file location.

0 comments: