Visual Studio allows you to visually design components. For example, you are developing a Windows form. You change its property in the property editor. The IDE will generate code in a partial class in the xx.designer.cs file. We can customize this behavior by changing the UITypeEditor for properties.
Now the question is: can we extend the code generation behavior? For example, we change the parameter in the properties window, and then the IDE adds the .NET attribute to the class?
source
share