2009-11-05, 03:32 AM
Conciente Wrote:Hello,It sounds like this is for a class. If not, then depending on what exactly you want to generate, a Visual Studio snippet could be a lot easier. I've made one for creating thread-safe events in C#.
I am having a hard time thinking this out. I need to make a plugin for Visual Studio 2008 that auto-generates code for ONE design pattern of my choice(I am probably going to choose the State pattern). Problem is... I need help, a lot of help.
I need to do a design of what I am going to do, preferably using UML. The "architecture" of the plugin. How is it supposed to work, like a description, etc
I also need to do an analysis of HOW I am going to implement it, using diagrams or whatever.
Any help would be greatly appreciated.
Otherwise, choose a design pattern that lends itself to code generation (something repetitive that a human would find boring to type). I'm not really up on design patterns so I can't help you there. Describe in pseudocode how the code generation will work, including what it takes as input. Take that design and figure out how to do that as a VS plugin. Once you've figured out what classes your plugin will have and what methods those classes will, there's your architecture.

