The documentation for NancyFX seems to switch between giving the DynamicDictionary a full name (parameters
) and just using underscore (_
)
Get["/hello/{name}"] = parameters => {
return "Hello " + parameters.name;
};
vs
Get["/products/{id}"] = _ => {
//do something
};
Is there any significance to the naming of this parameter? The underscore appears to be a NancyFX convention but one that's applied inconsistently even within the documentation.
There is no enforced significance to that naming. The convention is that parameters called _
are not used, whereas parameters with "real" name are.