Class Iso8211Field
Represents a field within an ISO 8211 record.
public sealed record Iso8211Field : IEquatable<Iso8211Field>
- Inheritance
-
Iso8211Field
- Implements
- Inherited Members
Properties
Data
Gets the raw field data, without the field terminator.
public ReadOnlyMemory<byte> Data { get; init; }
Property Value
Remarks
Fields read by Iso8211DocumentReader are slices of the data it read, not copies. Whether that data is shared with the caller depends on the read method: see Read(ReadOnlyMemory<byte>). A byte array converts implicitly when you build a field.
Tag
Gets the field tag.
public string Tag { get; init; }
Property Value
Methods
GetDataString(Encoding?)
Gets the field data as a string using the specified encoding.
public string GetDataString(Encoding? encoding = null)
Parameters
encodingEncodingThe encoding to use. Defaults to ASCII.
Returns
- string
The field data as a string.