If you are developing a custom control and you don't want Visual Studio to generate such code for some of its properties, you should apply the DesignerSerializationVisiblityAttribute to such properties and place DesignerSerializationVisiblity.Hidden value on them.
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public DateTime Value { get { /* ... */ } set { /* ... */ } }More information about customizing the code generated by Visual Studio can be found here.
No comments:
Post a Comment