CreateInstanceAndAssignMembers(Type, List<MemberAssignment>) Method
Creates an instance of the given type using IObjectResolver, then assigns the given member assignments to that instance.
Namespace
CsvHelper.Expressions
Containing Type
ExpressionManager

Syntax

public virtual BlockExpression CreateInstanceAndAssignMembers(Type recordType, List<MemberAssignment> assignments)

Parameters

Name Type Description
recordType Type The type of the record we're creating.
assignments List<MemberAssignment> The member assignments that will be assigned to the created instance.

Return Value

Type Description
BlockExpression A BlockExpression representing the instance creation and assignments.