UseNewObjectForNullReferenceMembersAttribute Class
Gets a value indicating that during writing whether a new object should be created when a reference member is . to create a new object and use its defaults for the fields, or to leave the fields empty for all the reference member's members.
Namespace
CsvHelper.Configuration.Attributes
Interfaces
Base Types
  • Attribute
graph BT Type-->Base0["Attribute"] Type-.->Interface0["IClassMapper"] click Interface0 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IClassMapper" Type["UseNewObjectForNullReferenceMembersAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class UseNewObjectForNullReferenceMembersAttribute : Attribute, IClassMapper

Attributes

Type Description
AttributeUsage

Constructors

Name Summary
UseNewObjectForNullReferenceMembersAttribute(bool) Gets a value indicating that during writing whether a new object should be created when a reference member is . to create a new object and use its defaults for the fields, or to leave the fields empty for all the reference member's members.

Properties

Name Property Type Summary
UseNewObjectForNullReferenceMembers bool
Gets a value indicating that during writing whether a new object should be created when a reference member is . to create a new object and use its defaults for the fields, or to leave the fields empty for all the reference member's members.

Methods

Name Return Value Summary
ApplyTo(CsvConfiguration) void
Applies configuration.