Method ToNullable
ToNullable<T>(OptionalPathParam<T>)
Converts an OptionalPathParam<T> to the parameter value, treating an instance with no value as null.
Declaration
public static T? ToNullable<T>(this OptionalPathParam<T> optional) where T : class, IParsable<T>, IEquatable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| OptionalPathParam<T> | optional |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |