开发者

Code Generator for wrapper classes

开发者 https://www.devze.com 2023-01-13 04:17 出处:网络
Do you know of a tool that generates wrapper class based on another class? EDIT: By wrapper class I mean a class which wraps all exposed(public, protected) properties methods events so that you can p

Do you know of a tool that generates wrapper class based on another class?

EDIT: By wrapper class I mean a class which wraps all exposed(public, protected) properties methods events so that you can put any logic in the middle. My concrete purpose is use it to verify the 开发者_Python百科behavior of the wrapped class.


You could use T4 templating and write your own logic...

http://msdn.microsoft.com/en-us/library/bb126445.aspx http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx


I have used SmartCode it's flexible and customizable http://www.codeproject.com/KB/dotnet/SmartCode-Code_Generation.aspx


Try wrappergen http://sourceforge.net/projects/wrappergen/.

I could not launch the exe, I got an error but you might.

0

精彩评论

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