EmbeddedDataConvertTArg, TResult(TArg, FuncByte, TArg, TResult, FuncString, TArg, TResult) Method
Converts the encapsulated value to TResult and allows to specify
an argument for the conversion.
Namespace: FolkerKinzel.DataUrlsAssembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
public TResult Convert<TArg, TResult>(
TArg arg,
Func<byte[], TArg, TResult> bytesFunc,
Func<string, TArg, TResult> textFunc
)
Public Function Convert(Of TArg, TResult) (
arg As TArg,
bytesFunc As Func(Of Byte(), TArg, TResult),
textFunc 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<String^, TArg, TResult>^ textFunc
)
member Convert :
arg : 'TArg *
bytesFunc : Func<byte[], 'TArg, 'TResult> *
textFunc : 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.
- textFunc 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.
TResultAn instance of
TResult.