xtd 0.2.0
Loading...
Searching...
No Matches

◆ delegate() [4/4]

template<typename result_t , typename... arguments_t>
template<typename object1_t , typename object2_t >
xtd::delegate< result_t(arguments_t...)>::delegate ( const object1_t &  object,
result_t(object2_t::*)()  method 
)
inlinenoexcept

Initializes a delegate that invokes the specified instance method on the specified class instance.

Parameters
objectthe class instance.
functionthe method instance.