Struct CsvFieldsRef<T>
Internal implementation detail. This type should probably not be used directly. Using an unitialized instance leads to undefined behavior.
[EditorBrowsable(EditorBrowsableState.Never)]
public readonly ref struct CsvFieldsRef<T> : ICsvFields<T> where T : unmanaged, IBinaryInteger<T>
Type Parameters
T
- Implements
-
ICsvFields<T>
Properties
FieldCount
Gets the number of fields in the record.
public int FieldCount { get; }
Property Value
this[int]
Returns the field at index
.
public ReadOnlySpan<T> this[int index] { get; }
Parameters
index
intZero-based index of the field to get.
Property Value
- ReadOnlySpan<T>
Remarks
The span is only valid until another field or the next record is read.
Record
Data of the raw record, not including possible trailing newline.
public ReadOnlySpan<T> Record { get; }
Property Value
- ReadOnlySpan<T>
Methods
GetRecordLength(bool)
Returns length of the raw record.
public int GetRecordLength(bool includeTrailingNewline = false)
Parameters
includeTrailingNewline
bool
Returns
ToString()
Returns a diagnostic string representation of the current instance.
public override string ToString()
Returns
Remarks
See Record to get the actual record span.