ContactIDSwitchTArg(TArg, ActionGuid, TArg, ActionUri, TArg, ActionString, TArg) Method
Performs an
ActionT depending on the
Type of the
encapsulated value and allows to pass an argument to the delegates.
Namespace: FolkerKinzel.VCards.ModelsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
public abstract void Switch<TArg>(
TArg arg,
Action<Guid, TArg>? guidAction = null,
Action<Uri, TArg>? uriAction = null,
Action<string, TArg>? stringAction = null
)
Public MustOverride Sub Switch(Of TArg) (
arg As TArg,
Optional guidAction As Action(Of Guid, TArg) = Nothing,
Optional uriAction As Action(Of Uri, TArg) = Nothing,
Optional stringAction As Action(Of String, TArg) = Nothing
)
public:
generic<typename TArg>
virtual void Switch(
TArg arg,
Action<Guid, TArg>^ guidAction = nullptr,
Action<Uri^, TArg>^ uriAction = nullptr,
Action<String^, TArg>^ stringAction = nullptr
) abstract
abstract Switch :
arg : 'TArg *
?guidAction : Action<Guid, 'TArg> *
?uriAction : Action<Uri, 'TArg> *
?stringAction : Action<string, 'TArg>
(* Defaults:
let _guidAction = defaultArg guidAction null
let _uriAction = defaultArg uriAction null
let _stringAction = defaultArg stringAction null
*)
-> unit
- arg TArg
- The argument to pass to the delegates.
- guidAction ActionGuid, TArg (Optional)
- null, or the ActionT to perform if the encapsulated value
is a Guid.
- uriAction ActionUri, TArg (Optional)
- null, or the ActionT to perform if the encapsulated
value is a Uri.
- stringAction ActionString, TArg (Optional)
- null, or the ActionT to perform if the encapsulated
value is a String.
- TArg
- Generic type parameter for the type of the argument to pass
to the delegates.