RawDataSwitch(ActionByte, ActionUri, 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.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public void Switch(
	Action<byte[]>? bytesAction = null,
	Action<Uri>? uriAction = null,
	Action<string>? stringAction = null
)

Parameters

bytesAction  ActionByte  (Optional)
null, or the ActionT to perform if the encapsulated value is an array of Bytes.
uriAction  ActionUri  (Optional)
null, or the ActionT to perform if the encapsulated value is a Uri.
stringAction  ActionString  (Optional)
null, or the ActionT to perform if the encapsulated value is a String.

See Also