EmbeddedDataConvertTResult(FuncByte, TResult, FuncString, TResult) Method
Converts the encapsulated value to TResult.
Namespace: FolkerKinzel.DataUrlsAssembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
public TResult Convert<TResult>(
Func<byte[], TResult> bytesFunc,
Func<string, TResult> textFunc
)
Public Function Convert(Of TResult) (
bytesFunc As Func(Of Byte(), TResult),
textFunc As Func(Of String, TResult)
) As TResult
public:
generic<typename TResult>
TResult Convert(
Func<array<unsigned char>^, TResult>^ bytesFunc,
Func<String^, TResult>^ textFunc
)
member Convert :
bytesFunc : Func<byte[], 'TResult> *
textFunc : Func<string, 'TResult> -> 'TResult
- bytesFunc FuncByte, TResult
- The FuncT, TResult to call if the encapsulated
value is an array of Bytes.
- textFunc FuncString, TResult
- The FuncT, TResult to call if the encapsulated
value is a String.
- TResult
- Generic type parameter for the return type of the delegates.
TResultAn instance of
TResult.