RecordWriter Class
Base implementation for classes that write records.
graph BT Type-->Base0["object"] Type["RecordWriter"] class Type type-node Derived0["ExpandoObjectRecordWriter"]-->Type click Derived0 "/CsvHelper/api/CsvHelper.Expressions/ExpandoObjectRecordWriter" Derived1["DynamicRecordWriter"]-->Type click Derived1 "/CsvHelper/api/CsvHelper.Expressions/DynamicRecordWriter" Derived2["ObjectRecordWriter"]-->Type click Derived2 "/CsvHelper/api/CsvHelper.Expressions/ObjectRecordWriter" Derived3["PrimitiveRecordWriter"]-->Type click Derived3 "/CsvHelper/api/CsvHelper.Expressions/PrimitiveRecordWriter"

Syntax

public abstract class RecordWriter

Constructors

Name Summary
RecordWriter(CsvWriter) Initializes a new instance using the given writer.

Properties

Name Property Type Summary
ExpressionManager ExpressionManager
The expression manager.
Writer CsvWriter
Gets the writer.

Methods

Name Return Value Summary
CombineDelegates<T>(IEnumerable<Action<T>>) Action<T>?
Combines the delegates into a single multicast delegate. This is needed because Silverlight doesn't have the Delegate.Combine( params Delegate[] ) overload.
CreateWriteDelegate<T>(T) Action<T>
Creates a Delegate of type Action<T> that will write the given record using the current writer row.
CreateWriteDelegate<T>(Type) Action<T>
Creates a Delegate of type Action<T> that will write the given record using the current writer row.
GetWriteDelegate<T>(RecordTypeInfo) Action<T>
Gets the delegate to write the given record. If the delegate doesn't exist, one will be created and cached.