Is it possible to set attribute value [] for class or property based on machine.config field ?
Thanks for help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it is not possible. Attributes are metadata that are baked into the assembly at compile time. This means that everything that you pass as values to attributes need to be constant and known at compile-time. Files such as machine.config are read at runtime.