I have two simple questions based on what I am extending an existing class ...
1) I implement some custom properties, and I would like that whenever their values change, a specific (without parameters) function is called. Of course, if there was no need to call the function, I could use the traditional syntax { get; set; }without requiring an additional variable. However, even if the only thing I modify in the setaccessor is to call another function, I have to declare a private variable so that I can define accessors myself getand set... Isn’t there an easier way to do this without declaring so many variables? Is there something like a gerenal property change event ?
2) Since I am overriding the .NET user control, I would like to change the category in which some basic properties appear. For now and just using the syntax [Category("")], I have to declare these properties as newwell as implement getand setreferring to the basic properties of the class. Isn't there an easy way to do this?
source
share