I'm writing a user control with two attributes, A
and B
. I want the programmer using this control to be warned when defining a value for attribute A
but not for B
.
Can I accomplish this somehow?
I'm writing a user control with two attributes, A
and B
. I want the programmer using this control to be warned when defining a value for attribute A
but not for B
.
Can I accomplish this somehow?
You could just throw an ArgumentException at runtime in the User Control's Page_Load() method.