Skip to content

Exporter Public Methods

Haruki Takahashi edited this page May 30, 2023 · 1 revision

hasHeader has the following effects for all three methods below:

HasHeader Behavior
True Headers are included in the enumerable.
False Headers are skipped.

Convert to IEnumerable

public static IEnumerable<string> ToIEnumerable(ObservableTable<string> table, bool hasHeader)

Convert to string

public static string ToCsvString(ObservableTable<string> table, bool hasHeader = true)

This method returns a multiline string delimited by Environment.ReadLine.


Export to a File

public static void ToFile(string path, ObservableTable<string> table, bool hasHeader = true)
Clone this wiki locally