Skip to main content

Class CsvDataFormat

A concrete implementation of the [Workspace.XBR.Xperiflow.Etl.IDataFormat](../Xperiflow.Etl/IDataFormat.md) interface that represents a CSV file.

Namespace: Workspace.XBR.Xperiflow.Etl

Assembly: Xperiflow.dll

Declaration
public class CsvDataFormat : IDataFormat

Implements: Workspace.XBR.Xperiflow.Etl.IDataFormat

Properties

Format

The data format.

Declaration
[JsonIgnore]
public string Format { get; }

Delimiter

The delimiter used in the CSV file.

Declaration
[JsonPropertyName("delimiter")]
public char Delimiter { get; set; }

Methods

ToJson()

Serializes the [Workspace.XBR.Xperiflow.Etl.CsvDataFormat](../Xperiflow.Etl/CsvDataFormat.md) object to a JSON string.

Declaration
public string ToJson()
Returns

System.String

A serialized representation of the CsvDataFormat

FromJson(string)

Deserializes the JSON string to a [Workspace.XBR.Xperiflow.Etl.CsvDataFormat](../Xperiflow.Etl/CsvDataFormat.md) object.

Declaration
public static CsvDataFormat FromJson(string data)
Returns

Workspace.XBR.Xperiflow.Etl.CsvDataFormat

A [Workspace.XBR.Xperiflow.Etl.CsvDataFormat](../Xperiflow.Etl/CsvDataFormat.md)

Parameters
TypeNameDescription
System.StringdataThe JSON string representation of the CsvDataFormat
Exceptions

System.Text.Json.JsonException

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

Was this page helpful?