<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

DataTable

public class DataTable
Provides static utility methods for manipulating data table representations.
public DataTable()

public static DataTable CsvToDataTable(Stream stream)

Reads a stream that is a CSV formatted file into a datatable with the first row being column headers.

public static int[] DataTableToInt32Array(DataTable dataTable, string fieldName)

Gets an integer array representation of the specified column from the specified data table.

public static string GetHeaderToCsv(DataTable dt)

Gets a CSV string representation of the column names of the provided data table.

public static string GetRowsToCsv(DataTable dt)

Gets a CSV string representation of all the data of the provided data table.

public static string ToCsv(DataTable dt, bool includeHeader)

Transforms the provided data table to its CSV string representation.