# CsvRecordAccumulator<TAccumulator>

Updates an accumulator from one transient CSV record.

Delegate 

`OfficeIMO.CSV`

**Namespace**

`OfficeIMO.CSV`

**Assembly**

`OfficeIMO.CSV`

**Base**

`MulticastDelegate`

**Implements**

`ICloneable` `ISerializable`

**Modifiers**

sealed

Updates an accumulator from one transient CSV record.

## Inheritance

- MulticastDelegate
- CsvRecordAccumulator<TAccumulator>

## Remarks

Callbacks for different partitions can run concurrently. Modify only the supplied state and do not retain the record or its borrowed spans. Reference-type state must be independent for each call to the accumulator factory.

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [CsvRecordAccumulatorBuilder<T>.EndInvoke](/api/csv/officeimo-csv-csvrecordaccumulatorbuilder/#method-endinvoke-iasyncresult)
- Method [CsvRecordAccumulatorBuilder<T>.Invoke](/api/csv/officeimo-csv-csvrecordaccumulatorbuilder/#method-invoke-csvrecordheader)

## Type Parameters

**TAccumulator**

Caller-owned accumulator state, including value types.

Filter members 

Show inherited

## Constructors

`public CsvRecordAccumulator<TAccumulator>(object object, nint method)` [#](#constructor-ctor-object-intptr)

Parameters

**object object required**

**method nint required**

## Methods

`public virtual IAsyncResult BeginInvoke(ref TAccumulator? accumulator, CsvRecord record, AsyncCallback callback, object object)` [#](#method-begininvoke-taccumulator-csvrecord-asynccallback-object)

Parameters

**accumulator TAccumulator? required**

**record CsvRecord required**

**callback AsyncCallback required**

**object object required**

Returns

`IAsyncResult`

`public virtual void EndInvoke(ref TAccumulator? accumulator, IAsyncResult result)` [#](#method-endinvoke-taccumulator-iasyncresult)

Parameters

**accumulator TAccumulator? required**

**result IAsyncResult required**

`public virtual void Invoke(ref TAccumulator? accumulator, CsvRecord record)` [#](#method-invoke-taccumulator-csvrecord)

Parameters

**accumulator TAccumulator? required**

**record CsvRecord required**

## Inherited Methods

`public virtual object Clone()` [#](#method-clone)

Inherited from Delegate

Returns

`object`

`public object? DynamicInvoke(params object?[]? args)` [#](#method-dynamicinvoke-object)

Inherited from Delegate

Parameters

**args object?[]? required**

Returns

`object?`

`public override sealed bool Equals(object? obj)` [#](#method-equals-object)

Inherited from MulticastDelegate

Parameters

**obj object? required**

Returns

`bool`

`public override sealed int GetHashCode()` [#](#method-gethashcode)

Inherited from MulticastDelegate

Returns

`int`

`public override sealed Delegate[] GetInvocationList()` [#](#method-getinvocationlist)

Inherited from MulticastDelegate

Returns

`Delegate[]`

`public override void GetObjectData(SerializationInfo info, StreamingContext context)` [#](#method-getobjectdata-serializationinfo-streamingcontext)

Inherited from MulticastDelegate

`Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")` `EditorBrowsable(1)`

Parameters

**info SerializationInfo required**

**context StreamingContext required**

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Inherited Properties

`public object? Target { get; }` [#](#property-target)

Inherited from Delegate

`public MethodInfo Method { get; }` [#](#property-method)

Inherited from Delegate

<!-- PowerForge markdown artifact sha256:76F472B557C8A87515A5E6E6987AD8E1DC86DBDB5A7BFD79C31CB1B47EA98C32 -->
