API Reference
CsvRecord
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
- Method CsvRecordFactory.BeginInvoke
- Method CsvRecordFactory.Invoke
Methods
public Boolean GetBoolean(Int32 ordinal) #BooleanParses a Boolean field, accepting true/false and 0/1.
Parameters
- ordinal System.Int32
public DateTime GetDateTime(Int32 ordinal) #DateTimeParses a DateTime field using configured CSV formats and round-trip semantics.
Parameters
- ordinal System.Int32
public Decimal GetDecimal(Int32 ordinal) #DecimalParses a decimal field using the reader culture.
Parameters
- ordinal System.Int32
public Double GetDouble(Int32 ordinal) #DoubleParses a double-precision number using the reader culture.
Parameters
- ordinal System.Int32
public Int32 GetInt32(Int32 ordinal) #Int32Parses a 32-bit integer field using the reader culture.
Parameters
- ordinal System.Int32
public Int64 GetInt64(Int32 ordinal) #Int64Parses a 64-bit integer field using the reader culture.
Parameters
- ordinal System.Int32
public ReadOnlySpan<Char> GetSpan(Int32 ordinal) #ReadOnlySpan<Char>Gets a transient unescaped field span.
Parameters
- ordinal System.Int32
public String GetString(Int32 ordinal) #StringMaterializes a field as a string.
Parameters
- ordinal System.Int32
public Boolean IsMissing(Int32 ordinal) #BooleanReturns whether the source row omitted the field at the specified ordinal.
Parameters
- ordinal System.Int32
public Boolean IsNull(Int32 ordinal) #BooleanReturns whether the field matches the configured CSV null marker.
Parameters
- ordinal System.Int32
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Int32 FieldCount { get; } #Gets the number of source fields.