EmbeddedDataSwitch(ActionByte, ActionString) Method
Performs an
ActionT depending on the
Type of
the embedded data.
Namespace: FolkerKinzel.DataUrlsAssembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
public void Switch(
Action<byte[]>? bytesAction = null,
Action<string>? textAction = null
)
Public Sub Switch (
Optional bytesAction As Action(Of Byte()) = Nothing,
Optional textAction As Action(Of String) = Nothing
)
public:
void Switch(
Action<array<unsigned char>^>^ bytesAction = nullptr,
Action<String^>^ textAction = nullptr
)
member Switch :
?bytesAction : Action<byte[]> *
?textAction : Action<string>
(* Defaults:
let _bytesAction = defaultArg bytesAction null
let _textAction = defaultArg textAction null
*)
-> unit
Parameters
- bytesAction ActionByte (Optional)
- null, or the ActionT to
be executed if the encapsulated value is an array of Bytes.
- textAction ActionString (Optional)
- null, or the ActionT to be
executed if the encapsulated value is a String.