Adapts a supplied delegate of type WriteBackDataEventHandler<(Of <(TData, TResult>)>) to DataEventHandler<(Of <(T>)>) which
has a built in logic of writing back the results to space.
Usage:
Subsribe to the DataEventArrived event with the adapter:
IEventListenerContainer.DataEventArrived += new DelegateDataEventArrivedAdapter(myDelegate).OnEvent;
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public class DelegateDataEventArrivedAdapter<TData, TResult> : WriteBackResultDataEventAdapter<TData>, ICloneable
Public Class DelegateDataEventArrivedAdapter(Of TData, TResult) _ Inherits WriteBackResultDataEventAdapter(Of TData) _ Implements ICloneable
generic<typename TData, typename TResult> public ref class DelegateDataEventArrivedAdapter : public WriteBackResultDataEventAdapter<TData>, ICloneable
Generic Template Parameters
- TData
- Type of data object.
- TResult
- Type of result object.
Members
All Members | Constructors | Methods | |||
Inheritance Hierarchy
Object | ||
WriteBackResultDataEventAdapter<(Of <(TData>)>) | ||
DelegateDataEventArrivedAdapter<(Of <(TData, TResult>)>) |