Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

CsvColumnBuilder

OfficeIMO.CSV

Namespace
OfficeIMO.CSV
Assembly
OfficeIMO.CSV
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Fluent configuration for a single schema column.

Inheritance

  • object
  • CsvColumnBuilder

Usage

Explore 14 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public CsvColumnBuilder AsBoolean() #

Sets the expected data type to bool.

public CsvColumnBuilder AsDateOnly() #

Sets the expected data type to DateOnly without changing default date inference.

public CsvColumnBuilder AsDateTime() #

Sets the expected data type to DateTime.

public CsvColumnBuilder AsInt32() #

Sets the expected data type to int.

public CsvColumnBuilder AsString() #

Sets the expected data type to string.

public CsvColumnBuilder AsTimeOnly() #

Sets the expected data type to TimeOnly without changing default time inference.

public CsvColumnBuilder AsType(Type type) #

Sets a custom expected data type.

Parameters

type System.Type required
public CsvColumnBuilder Column(string name) #

Begins configuration of another column on the same schema.

Parameters

name string required
ConvertUsing 2 overloads
public CsvColumnBuilder ConvertUsing(Func<object?, object?> converter) #

Uses a custom converter before built-in typed conversion.

Parameters

converter System.Func<object?, object?> required
public CsvColumnBuilder ConvertUsing(Func<object?, CultureInfo, object?> converter) #

Uses a culture-aware custom converter before built-in typed conversion.

Parameters

converter System.Func<object?, System.Globalization.CultureInfo, object?> required
public CsvSchemaBuilder Done() #

Returns the parent schema builder so configuration can continue.

public CsvColumnBuilder Optional() #

Marks the column as optional.

public CsvColumnBuilder Required() #

Marks the column as required.

public CsvColumnBuilder Validate(Func<object?, bool> predicate, string message) #

Adds a custom validation rule.

Parameters

predicate System.Func<object?, bool> required
message string required
public CsvColumnBuilder WithDefault(object? value) #

Specifies a default value when the field is missing or null.

Parameters

value object? required