Table of Contents

Class Iso8211Field

Namespace
EncDotNet.Iso8211
Assembly
EncDotNet.Iso8211.dll

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

ReadOnlyMemory<byte>

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

string

Methods

GetDataString(Encoding?)

Gets the field data as a string using the specified encoding.

public string GetDataString(Encoding? encoding = null)

Parameters

encoding Encoding

The encoding to use. Defaults to ASCII.

Returns

string

The field data as a string.