Class Field
- Namespace
- EDIParser
- Assembly
- EDIParser.dll
Represents a field within an EDI segment.
public sealed class Field
- Inheritance
-
Field
- Inherited Members
Remarks
A field may contain a simple value, one or more components, or repeated field values depending on the configured EDI standard.
Properties
Components
Gets the components associated with the first field repetition.
public Components Components { get; }
Property Value
ComponentsByRepetitionIndexer
Gets the component collections associated with each field repetition.
public ComponentsByRepetitionIndexer ComponentsByRepetitionIndexer { get; }
Property Value
HasRepetition
Gets a value indicating whether this field contains more than one repetition.
public bool HasRepetition { get; }
Property Value
Name
Gets or sets the one-based name or position of the field.
public string Name { get; set; }
Property Value
RepetitionCount
Gets the number of repetitions represented by this field.
public int RepetitionCount { get; }
Property Value
Remarks
The repetition count is the larger of the stored field-value count and component-collection count.
Value
Gets or sets the value of the first field repetition.
public string Value { get; set; }
Property Value
Remarks
For repeated fields, use ComponentsByRepetitionIndexer or the parser's element-path APIs to access repetitions beyond the first.
ValueIndexer
Gets the indexer used to retrieve values from this field by element path.
public ValueIndexer ValueIndexer { get; }