FunctionInfoExtensions.GetDefaultParameterValue method
Gets the default value of a parameter in a FunctionInfo, if it has one.
public static object? GetDefaultParameterValue(this FunctionInfo func, string paramName)
| parameter | description |
|---|---|
| func | The FunctionInfo to inspect. |
| paramName | The name of the parameter. |
Return Value
The default value of the parameter, or null if none exists.
See Also
- class FunctionInfoExtensions
- namespace Kestrun.OpenApi