Initializes a new instance of the KeyBinding<(Of <(<'T>)>)> class.

Namespace: Hypertable.Persistence.Bindings
Assembly: ht4o (in ht4o.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
public KeyBinding(
	Func<T, string> get,
	Action<T, string> set,
	bool generateKey
)
Public Sub New ( _
	get As Func(Of T, String), _
	set As Action(Of T, String), _
	generateKey As Boolean _
)
public:
KeyBinding(
	Func<T, String^>^ get, 
	Action<T, String^>^ set, 
	bool generateKey
)

Parameters

get
Func<(Of <(<'T, String>)>)>
The getter function.
set
Action<(Of <(<'T, String>)>)>
The setter method.
generateKey
Boolean
Indicating whether this key binding should generate new keys or not.

Exceptions

ExceptionCondition
System..::..ArgumentNullException If get is null.
System..::..ArgumentNullException If set is null.

See Also