Class Pair<T1, T2>
A 2-tuple.
Inheritance
System.Object
Pair<T1, T2>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class Pair<T1, T2>
Type Parameters
Name | Description |
---|---|
T1 | First type the tuple holds. |
T2 | Second type the tuple holds. |
Constructors
Pair(T1, T2)
Initializes a new instance of the Pair<T1, T2> class.
Declaration
public Pair(T1 item1, T2 item2)
Parameters
Type | Name | Description |
---|---|---|
T1 | item1 | First item the tuple holds. |
T2 | item2 | Second item the tuple holds. |
Properties
Item1
Gets the first item in the tuple.
Declaration
public T1 Item1 { get; }
Property Value
Type | Description |
---|---|
T1 |
Item2
Gets the second item in the tuple.
Declaration
public T2 Item2 { get; }
Property Value
Type | Description |
---|---|
T2 |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Calculates the hashcode for this pair.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()