Table of Contents

Class Consumer<TObject>

Namespace
Java.Util.Function
Assembly
MASES.JNet.dll
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 TObject

The Consumer object