>>I have several interfaces exposing CultureInfo as a parameter. Adding these attributes is not convenient.
can you please clarify theinconvenience here?
Amit Sharma
I have an application with 40+ interfaces, a dozen of which has a total of about 20+ methods that carries a CultureInfo parameter.
Even if I bite the bullet and grease these methods accordingly, there is still the question of having to tell my team to do this properly in the future. I am looking for a solution that would solve both my concerns in one fell sweep.
Messing with the config file works. But I do not approve of bloating the config file for no good reason.
However: It is easy to enumerate all parameters of all methods of all my interfaces at runtime. I already do some pre-processing in this area to help cover some of WCF's shortfalls.
So if there was a way for me to add a custom attribute at runtime, I would be home and dry.
Any suggestions?