RawDataConvertTArg, TResult(TArg, FuncByte, TArg, TResult, FuncUri, TArg, TResult, FuncString, TArg, TResult) Method
Converts the encapsulated value to TResult and allows to specify an
argument for the conversion.
Namespace: FolkerKinzel.VCards.ModelsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
public TResult Convert<TArg, TResult>(
TArg arg,
Func<byte[], TArg, TResult> bytesFunc,
Func<Uri, TArg, TResult> uriFunc,
Func<string, TArg, TResult> stringFunc
)
Public Function Convert(Of TArg, TResult) (
arg As TArg,
bytesFunc As Func(Of Byte(), TArg, TResult),
uriFunc As Func(Of Uri, TArg, TResult),
stringFunc As Func(Of String, TArg, TResult)
) As TResult
public:
generic<typename TArg, typename TResult>
TResult Convert(
TArg arg,
Func<array<unsigned char>^, TArg, TResult>^ bytesFunc,
Func<Uri^, TArg, TResult>^ uriFunc,
Func<String^, TArg, TResult>^ stringFunc
)
member Convert :
arg : 'TArg *
bytesFunc : Func<byte[], 'TArg, 'TResult> *
uriFunc : Func<Uri, 'TArg, 'TResult> *
stringFunc : Func<string, 'TArg, 'TResult> -> 'TResult
- arg TArg
- The argument to pass to the delegates.
- bytesFunc FuncByte, TArg, TResult
- The FuncT, TResult to call if the encapsulated
value is an array of Bytes.
- uriFunc FuncUri, TArg, TResult
- The FuncT, TResult to call if the encapsulated
value is a Uri.
- stringFunc FuncString, TArg, TResult
- The FuncT, TResult to call if the encapsulated
value is a String.
- TArg
- Generic type parameter for the type of the argument to pass
to the delegates.
- TResult
- Generic type parameter for the return type of the delegates.
TResultA
TResult.