CsvRecord
OfficeIMO.CSV
A transient, span-backed CSV record passed to a projection callback.
Inheritance
- ValueType
- CsvRecord
Remarks
GetString and GetSpan retain original source text, including a configured null marker. Check IsNull and IsMissing before non-nullable primitive access. Primitive parsing rejects null fields with InvalidCastException; configured schema conversion and defaults retain the canonical reader behavior.
Usage
Explore 4 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.
Accepted by parameters 4
- Method CsvRecordAccumulator<T>.BeginInvoke
- Method CsvRecordAccumulator<T>.Invoke
- Method CsvRecordFactory<T>.BeginInvoke
- Method CsvRecordFactory<T>.Invoke
Methods
public bool GetBoolean(int ordinal) #Parses a Boolean field, accepting true/false and 0/1.
Parameters
- ordinal int
Returns
boolpublic DateTime GetDateTime(int ordinal) #Parses a DateTime field using configured CSV formats and round-trip semantics.
Parameters
- ordinal int
Returns
DateTimepublic decimal GetDecimal(int ordinal) #Parses a decimal field using the reader culture.
Parameters
- ordinal int
Returns
decimalpublic double GetDouble(int ordinal) #Parses a double-precision number using the reader culture.
Parameters
- ordinal int
Returns
doublepublic int GetInt32(int ordinal) #Parses a 32-bit integer field using the reader culture.
Parameters
- ordinal int
Returns
intpublic long GetInt64(int ordinal) #Parses a 64-bit integer field using the reader culture.
Parameters
- ordinal int
Returns
longpublic ReadOnlySpan<char> GetSpan(int ordinal) #Gets a transient unescaped field span.
Parameters
- ordinal int
Returns
ReadOnlySpan<char>public string GetString(int ordinal) #Materializes a field as a string.
Parameters
- ordinal int
Returns
stringpublic bool IsMissing(int ordinal) #Returns whether the source row omitted the field at the specified ordinal.
Parameters
- ordinal int
Returns
boolpublic bool IsNull(int ordinal) #Returns whether a present field is null under the current reader contract.
Parameters
- ordinal int
Returns
boolInherited Methods
Properties
public int FieldCount { get; } #Gets the number of resolved fields, including configured static columns.