DateAndOrTimeSwitch(ActionDateOnly, ActionDateTimeOffset, ActionTimeOnly, ActionString) Method
Performs an
ActionT depending on the
Type of the
encapsulated value.
Namespace: FolkerKinzel.VCards.ModelsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
public abstract void Switch(
Action<DateOnly>? dateAction = null,
Action<DateTimeOffset>? dtoAction = null,
Action<TimeOnly>? timeAction = null,
Action<string>? stringAction = null
)
Public MustOverride Sub Switch (
Optional dateAction As Action(Of DateOnly) = Nothing,
Optional dtoAction As Action(Of DateTimeOffset) = Nothing,
Optional timeAction As Action(Of TimeOnly) = Nothing,
Optional stringAction As Action(Of String) = Nothing
)
public:
virtual void Switch(
Action<DateOnly>^ dateAction = nullptr,
Action<DateTimeOffset>^ dtoAction = nullptr,
Action<TimeOnly>^ timeAction = nullptr,
Action<String^>^ stringAction = nullptr
) abstract
abstract Switch :
?dateAction : Action<DateOnly> *
?dtoAction : Action<DateTimeOffset> *
?timeAction : Action<TimeOnly> *
?stringAction : Action<string>
(* Defaults:
let _dateAction = defaultArg dateAction null
let _dtoAction = defaultArg dtoAction null
let _timeAction = defaultArg timeAction null
let _stringAction = defaultArg stringAction null
*)
-> unit
Parameters
- dateAction ActionDateOnly (Optional)
- null, or the ActionT to perform if the encapsulated
value is a DateOnly.
- dtoAction ActionDateTimeOffset (Optional)
- null, or the ActionT to perform if the encapsulated
value is a DateTimeOffset.
- timeAction ActionTimeOnly (Optional)
- null, or the ActionT to perform if the encapsulated
value is a TimeOnly.
- stringAction ActionString (Optional)
- null, or the ActionT to perform if the encapsulated
value is a String.