DateAndOrTimeSwitch(ActionDateOnly, ActionDateTimeOffset, ActionTimeOnly, ActionString) Method

Performs an ActionT depending on the Type of the encapsulated value.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.1.0+9753915cd0f8006e7e5b4f62aa63aa3651006f06
C#
public abstract void Switch(
	Action<DateOnly>? dateAction = null,
	Action<DateTimeOffset>? dtoAction = null,
	Action<TimeOnly>? timeAction = null,
	Action<string>? stringAction = null
)

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.

See Also