What attributes should be applied, ie:
public void some([Description("Obj1")]object a, object b)
This is a discussion on Method argument descriptions? within the C# Programming forums, part of the General Programming Boards category; What attributes should be applied, ie: public void some([Description("Obj1")]object a, object b)...
What attributes should be applied, ie:
public void some([Description("Obj1")]object a, object b)
For more information:Code:/// <summary> /// This is MyMethod, and it does stuff :) /// </summary> /// <param name="a">'A' is the first parameter, where you /// should put Object number 1</param> /// <param name="b">'B' is the second parameter, where you /// should put Object number 2</param> public void MyMethod(object a, object b)
http://msdn.microsoft.com/msdnmag/issues/02/06/XMLC/
Edit: If you actually want the 'Description' attribute for reflection or something, you can't use it on parameters. Attributes can only be used on classes, properties, fields, methods and constructors - not parameters. That would be like placing an attribute on a local variable - kinda silly.
Last edited by nickname_changed; 11-10-2005 at 04:45 PM.
Well, now I know how to set them. Thanks ...and how can I get them from other's (compiled) assemblies, like those in the FW?