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