public CsvWriter(
CsvWriter writer,
CsvMapping mapping,
Action<TSource, Object> conversion
)
Public Sub New (
writer As CsvWriter,
mapping As CsvMapping,
conversion As Action(Of TSource, Object)
)
public:
CsvWriter(
CsvWriter^ writer,
CsvMapping^ mapping,
Action<TSource, Object^>^ conversion
)
new :
writer : CsvWriter *
mapping : CsvMapping *
conversion : Action<'TSource, Object> -> CsvWriter
A method that fills the content of a TSource instance into the properties of mapping.
conversion is called with each call to Write(TSource) and it gets the TSource instance and mapping as arguments. The CsvMapping is passed to the method as dynamic argument: Inside the method the registered DynamicProperty instances can be used like regular .NET properties, but without IntelliSense ("late binding").
With each call all DynamicProperty instances in mapping have been reset to their DefaultValue.
ArgumentNullException | writer, or mapping, or conversion is null. |