API Reference

Struct

CsvRecord

Namespace OfficeIMO.CSV
Assembly OfficeIMO.CSV
Base ValueType
Modifiers sealed
Attributes
Obsolete("Types with embedded references are not supported in this version of your compiler.", true)

A transient, span-backed CSV record passed to a projection callback.

Inheritance

  • ValueType
  • CsvRecord

Usage

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

Accepted by parameters

Methods

public Boolean GetBoolean(Int32 ordinal) #
Returns: Boolean

Parses a Boolean field, accepting true/false and 0/1.

Parameters

ordinal System.Int32 requiredposition: 0
public DateTime GetDateTime(Int32 ordinal) #
Returns: DateTime

Parses a DateTime field using configured CSV formats and round-trip semantics.

Parameters

ordinal System.Int32 requiredposition: 0
public Decimal GetDecimal(Int32 ordinal) #
Returns: Decimal

Parses a decimal field using the reader culture.

Parameters

ordinal System.Int32 requiredposition: 0
public Double GetDouble(Int32 ordinal) #
Returns: Double

Parses a double-precision number using the reader culture.

Parameters

ordinal System.Int32 requiredposition: 0
public Guid GetGuid(Int32 ordinal) #
Returns: Guid

Parses a GUID field.

Parameters

ordinal System.Int32 requiredposition: 0
public Int32 GetInt32(Int32 ordinal) #
Returns: Int32

Parses a 32-bit integer field using the reader culture.

Parameters

ordinal System.Int32 requiredposition: 0
public Int64 GetInt64(Int32 ordinal) #
Returns: Int64

Parses a 64-bit integer field using the reader culture.

Parameters

ordinal System.Int32 requiredposition: 0
public ReadOnlySpan<Char> GetSpan(Int32 ordinal) #
Returns: ReadOnlySpan<Char>

Gets a transient unescaped field span.

Parameters

ordinal System.Int32 requiredposition: 0
public String GetString(Int32 ordinal) #
Returns: String

Materializes a field as a string.

Parameters

ordinal System.Int32 requiredposition: 0
public Boolean IsMissing(Int32 ordinal) #
Returns: Boolean

Returns whether the source row omitted the field at the specified ordinal.

Parameters

ordinal System.Int32 requiredposition: 0
public Boolean IsNull(Int32 ordinal) #
Returns: Boolean

Returns whether the field matches the configured CSV null marker.

Parameters

ordinal System.Int32 requiredposition: 0

Properties

public Int32 FieldCount { get; } #

Gets the number of source fields.