Class Consumer<TObject>
Listener for https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html. Extends Consumer
public class Consumer<TObject> : Consumer, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IConsumer<TObject>, IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
TObject
The data type associated to the event
- Inheritance
-
Consumer<TObject>
- Implements
-
IConsumer<TObject>
- Derived
- Inherited Members
- Extension Methods
Constructors
Consumer()
Initialize a new instance of Consumer<TObject>
public Consumer()
Properties
OnAccept
The Action<T> to be executed
public virtual Action<TObject> OnAccept { get; set; }
Property Value
- Action<TObject>
Methods
Accept(TObject)
Executes the Consumer action in the CLR
public virtual void Accept(TObject obj)
Parameters
obj
TObjectThe Consumer object