Adding an attribute to a class by using properties editor

Posted by Fred Yang on Stack Overflow See other posts from Stack Overflow or by Fred Yang
Published on 2009-07-14T17:18:24Z Indexed on 2010/05/16 0:10 UTC
Read the original article Hit count: 588

Visual studio allows you to design component visually. For example, you are designing a windows form. You change its property in the properties editor. The IDE will generate the code in a partial class in xx.designer.cs file. We can customize this behavior by changing the UITypeEditor for the properties.

The question now is , Can we extend this code generation behavior? for example, we change a setting in property window, and then the IDE will add an .net Attribute to the class?

Thanks

© Stack Overflow or respective owner

Related posts about code-generation

Related posts about visual-studio