开发者

Visual Studio: Create Add-In That Creates Partial Class in C#

开发者 https://www.devze.com 2023-03-12 20:45 出处:网络
I\'d like to have an Add-In in Visual Studio 2008 that will auto-generate some code as a partial class in C# for an existing开发者_StackOverflow class but I don\'t know where to start.

I'd like to have an Add-In in Visual Studio 2008 that will auto-generate some code as a partial class in C# for an existing开发者_StackOverflow class but I don't know where to start.

Any ideas or best practices would be greatly appreciated.

thanks


What exactly do you want your addin to do with the existing class to generate this?

You can do similar things using the Text Template Transformation Toolkit (T4)


You can create an item template to accomplish this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号