# CsvProfiles

Creates independent, editable options for common CSV workflows.

Class 

`OfficeIMO.CSV`

**Namespace**

`OfficeIMO.CSV`

**Assembly**

`OfficeIMO.CSV`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[CsvProfiles.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.CSV/CsvProfiles.cs#L34)

**Modifiers**

static

Creates independent, editable options for common CSV workflows.

## Inheritance

- object
- CsvProfiles

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [CSV Dialects and Encodings](/docs/csv/dialects-encodings/) Guide
  
  Read and write semicolon, tab and pipe-delimited CSV, detect delimiters, and choose encodings, cultures and policy profiles with OfficeIMO.CSV.

Filter members 

Show inherited

## Methods

`public static CsvLoadOptions CreateLoadOptions(CsvProfile profile)` [#](#method-createloadoptions-officeimo-csv-csvprofile)

[CsvProfiles.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.CSV/CsvProfiles.cs#L34)

Creates load options. Strict uses fixed UTF-8 with invalid-byte rejection, literal comment rows, strict quoting and column counts, duplicate-header rejection and redacted mapping failures. Spreadsheet detects delimiters and BOM encodings, keeps strict quoting and counts, and repairs missing or duplicate headers. Tsv reads tab-separated records with quotes as data, strict column counts, BOM-detected encodings and repaired headers. Compatibility retains existing defaults.

Parameters

**profile OfficeIMO.CSV.CsvProfile required**

Returns

`CsvLoadOptions`

`public static CsvReaderOptions CreateReaderOptions(CsvProfile profile)` [#](#method-createreaderoptions-officeimo-csv-csvprofile)

[CsvProfiles.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.CSV/CsvProfiles.cs#L38)

Creates forward-only reader options with the same parsing policy as the selected load profile.

Parameters

**profile OfficeIMO.CSV.CsvProfile required**

Returns

`CsvReaderOptions`

`public static CsvSaveOptions CreateSaveOptions(CsvProfile profile)` [#](#method-createsaveoptions-officeimo-csv-csvprofile)

[CsvProfiles.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.CSV/CsvProfiles.cs#L89)

Creates save options. Strict writes UTF-8 without BOM and CRLF while preserving values. Spreadsheet writes UTF-8 with BOM and CRLF and prefixes formula-like text with an apostrophe. Tsv writes tab-separated UTF-8 without BOM, LF line endings and no quoting; a field containing a tab or line break fails the write unless backslash escaping is selected. Compatibility retains existing defaults. TextWriter and string output have no byte encoding; the encoding applies to file and stream output.

Parameters

**profile OfficeIMO.CSV.CsvProfile required**

Returns

`CsvSaveOptions`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:8D26F5FF5C13C406168ADC99BD64C9D69F34B31C8DC47C159771270BD62D7A6D -->
