PairTKey, TValue Class |
Namespace: Ookii.Jumbo.IO
public sealed class Pair<TKey, TValue> : IWritable, IComparable<Pair<TKey, TValue>>, IEquatable<Pair<TKey, TValue>>, ICloneable
The PairTKey, TValue type exposes the following members.
Name | Description | |
---|---|---|
PairTKey, TValue |
Initializes a new instance of the PairTKey, TValue class.
| |
PairTKey, TValue(TKey, TValue) |
Initializes a new instance of the PairTKey, TValue class with the specified key and value.
|
Name | Description | |
---|---|---|
Key |
Gets or sets the key in the key/value pair.
| |
Value |
Gets or sets the value in the key/value pair.
|
Name | Description | |
---|---|---|
CompareTo |
Compares the current instance with another object of the same type and returns an integer that
indicates whether the current instance precedes, follows, or occurs in the same position in the
sort order as the other object.
| |
Equals(Object) |
Determines whether the specified Object is equal to the current PairTKey, TValue.
(Overrides ObjectEquals(Object).) | |
Equals(PairTKey, TValue) |
Determines whether the specified PairTKey, TValue is equal to the current PairTKey, TValue.
| |
GetHashCode |
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Read |
Reads the object from the specified reader.
| |
ToString |
Gets a string representation of the current PairTKey, TValue.
(Overrides ObjectToString.) | |
Write |
Writes the object to the specified writer.
|
Name | Description | |
---|---|---|
Equality |
Determines whether two specified PairTKey, TValue objects have the same value.
| |
GreaterThan |
Determines whether one specified PairTKey, TValue is greater than another specified PairTKey, TValue | |
GreaterThanOrEqual |
Determines whether one specified PairTKey, TValue is greater than or equal to another specified PairTKey, TValue | |
Inequality |
Determines whether two specified PairTKey, TValue objects have different values.
| |
LessThan |
Determines whether one specified PairTKey, TValue is less than another specified PairTKey, TValue | |
LessThanOrEqual |
Determines whether one specified PairTKey, TValue is less than or equal to another specified PairTKey, TValue |
Jumbo does not support the use of KeyValuePairTKey, TValue as a record type. You must use PairTKey, TValue instead.
The IComparableT implementation of this class uses the key only; it ignores the value. IEquatableT does use both the key and value.