What is the usefulness of placing attributes on specific parameters of a method?

Posted by jpbochi on Stack Overflow See other posts from Stack Overflow or by jpbochi
Published on 2010-06-17T20:15:42Z Indexed on 2010/06/17 20:23 UTC
Read the original article Hit count: 124

Filed under:
|
|
|

I'm looking for a list of reasonable use cases of putting attributes in a parameter.

I can think of some good cases for attributes in a method, but can't seem to see a good usage of a parameter attribute. Please, enlighten me.

And what about attributes on the return type of a method?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET