>@,System.Action{--0})}
Defined in Type: OptionExtensions
Namespace: DynamicData.Kernel
Assembly: DynamicData.dll
Applies to
net10.0, netstandard2.0
Overloads
-
public static OptionElse IfHasValue<T>(this in Optional<T> source, Action<T> action) where T : notnull -
public static OptionElse IfHasValue<T>(this Optional<T>? source, Action<T> action) where T : notnull
1. Overload
public static OptionElse IfHasValue<T>(this in Optional<T> source, Action<T> action) where T : notnull
Summary: Invokes the specified action when.
Type parameters
| Name | Description |
|---|---|
T | The type of the item. |
Parameters
| Name | Type | Description |
|---|---|---|
in source | [Optional | The source. |
action | Action | The action. |
Returns: OptionElse -- The optional else extension.
2. Overload
public static OptionElse IfHasValue<T>(this Optional<T>? source, Action<T> action) where T : notnull
Summary: Invokes the specified action when.
Type parameters
| Name | Description |
|---|---|
T | The type of the item. |
Parameters
| Name | Type | Description |
|---|---|---|
source | Optional | The source. |
action | Action | The action. |
Returns: OptionElse -- The optional else extension.