I am looking for a way to document action parameters in C#. Code looks like this:
/// <summary>
/// Do some action with parameters.
/// </summary>
/// <params name="someAction"> This is action but what about parameters? </param>
public void Do(Action<int,int,string> someAction)
How can I name and document parameters of "someAction" so that they would appear in intellisense?
You can use a nested structure.
It looks like this in the editor:
However, for complex structures, this is harder to maintain in the long run. If the context is not apparent intuitively, it is better and safer to create a class.