Parameter attributes in c#
        Posted  
        
            by ng
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ng
        
        
        
        Published on 2010-04-27T12:40:44Z
        Indexed on 
            2010/04/27
            12:43 UTC
        
        
        Read the original article
        Hit count: 264
        
How can I do the following with c# attributes. Below is a snippet of Java that annotates parameters in a constructor.
public class Factory {
    private final String name;
    private final String value;
    public Factory(@Inject("name") String name, @Inject("value") String value) {
        this.name = name;
        this.value = value;
    }
}
From looking at c# annotations it does not look like I can annotate parameters. Is this possible?
© Stack Overflow or respective owner