0

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?

1
  • Warned at compile time, or at run time? Commented Dec 15, 2009 at 12:58

1 Answer 1

1

You could just throw an ArgumentException at runtime in the User Control's Page_Load() method.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.