RefPair

Ecng.Common

Represents a pair of reference values.

Implementa: IRefTuple

Constructores

RefPair
public RefPair()
refPair = RefPair()

Initializes a new instance of the RefPair class.

RefPair
public RefPair(TFirst first, TSecond second)
refPair = RefPair(first, second)

Initializes a new instance of the RefPair class with specified values.

first
The first element.
second
The second element.

Propiedades

First
public TFirst First { get; set; }
value = refPair.First
refPair.First = value

Gets or sets the first element.

Second
public TSecond Second { get; set; }
value = refPair.Second
refPair.Second = value

Gets or sets the second element.

Values
public virtual IEnumerable<object> Values { get; set; }
value = refPair.Values
refPair.Values = value

Gets or sets the tuple values.

Métodos

GetValuesString
protected virtual string GetValuesString()
result = refPair.GetValuesString()

Gets a string that represents the tuple values.

Devuelve: A string representation of the tuple values.

ToString
public override string ToString()
result = refPair.ToString()

Returns a string that represents the tuple.

Devuelve: A string representation of the tuple.

ToValuePair
public KeyValuePair<TFirst, TSecond> ToValuePair()
result = refPair.ToValuePair()

Converts the tuple to a KeyValuePair.

Devuelve: A KeyValuePair containing the first and second elements.