RelationConvertTResult(FuncVCard, TResult, FuncContactID, TResult) Method

Converts the encapsulated value to TResult.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.1.0+9753915cd0f8006e7e5b4f62aa63aa3651006f06
C#
public TResult Convert<TResult>(
	Func<VCard, TResult> vCardFunc,
	Func<ContactID, TResult> contactIDFunc
)

Parameters

vCardFunc  FuncVCard, TResult
The FuncT, TResult to call if the encapsulated value is a VCard.
contactIDFunc  FuncContactID, TResult
The FuncT, TResult to call if the encapsulated value is a ContactID.

Type Parameters

TResult
Generic type parameter.

Return Value

TResult
A TResult.

Exceptions

ArgumentNullException One of the arguments is null and the encapsulated value is of that Type.

See Also