Class RecordKx
Key exchange record.
public sealed record RecordKx : Record, IEquatable<Record>, IEquatable<RecordKx>
- Inheritance
-
RecordKx
- Implements
- Inherited Members
Constructors
RecordKx(RecordReader)
Initializes a new instance of the RecordKx class.
public RecordKx(RecordReader reader)
Parameters
readerRecordReaderRecordReader for the data.
Properties
Exchanger
Gets the exchanger.
public string Exchanger { get; }
Property Value
Preference
Gets the preference.
public ushort Preference { get; }
Property Value
Methods
ToString()
Returns a string representation of the key exchanger record.
public override string ToString()
Returns
- string
The preference followed by the exchanger.
Remarks
Required rather than optional: without it the compiler-generated record ToString prints ResourceRecord, whose own ToString prints this record back, and the pair recurse until the stack is exhausted.