Class CSVWritingOptions
Specifies how row should be written in CSV. Use CSVWritingOptions.Default static property for typical options
Inheritance
System.Object
CSVWritingOptions
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Serialization.CSV
Assembly: Azos.dll
Syntax
public class CSVWritingOptions : IConfigurable
Constructors
CSVWritingOptions()
Declaration
public CSVWritingOptions()
CSVWritingOptions(CSVWritingOptions)
Declaration
public CSVWritingOptions(CSVWritingOptions other)
Parameters
Type | Name | Description |
---|---|---|
CSVWritingOptions | other |
Fields
FieldDelimiter
Specifies field delimiter, comma is default
Declaration
[Config]
public char FieldDelimiter
Field Value
Type | Description |
---|---|
System.Char |
IncludeHeader
Indicates if field names must be included in result
Declaration
[Config]
public bool IncludeHeader
Field Value
Type | Description |
---|---|
System.Boolean |
LoadAllFields
Indicates if nonUI/non-stored fields must be loaded
Declaration
[Config]
public bool LoadAllFields
Field Value
Type | Description |
---|---|
System.Boolean |
NullValue
Specifies string that will be used for null values
Declaration
[Config]
public string NullValue
Field Value
Type | Description |
---|---|
System.String |
Properties
AllFields
Writes all fields with comma as field delimiter, empty string for null values, including field names
Declaration
public static CSVWritingOptions AllFields { get; }
Property Value
Type | Description |
---|---|
CSVWritingOptions |
Default
Writes CSV with comma as field delimiter, empty string for null values, skipping nonUI/non-stored fields, including field names
Declaration
public static CSVWritingOptions Default { get; }
Property Value
Type | Description |
---|---|
CSVWritingOptions |
NoHeader
Writes CSV with comma as field delimiter, empty string for null values, skipping nonUI/non-stored fields, but without field names
Declaration
public static CSVWritingOptions NoHeader { get; }
Property Value
Type | Description |
---|---|
CSVWritingOptions |
Methods
Configure(IConfigSectionNode)
Declaration
public void Configure(IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | node |