TypePair

References
Ordered pair of Types.

Constructors

TypePair

#
public TypePair(Type typeA, Type typeB)
Create a new type pair.
typeA (Type)First type.
typeB (Type)Second type.

Properties

TypeA

#
public Type TypeA { get; }
Gets the id of the from conversion type.

TypeB

#
public Type TypeB { get; }
Gets the id of the to conversion type.

Methods

Create<T1, T2>

#
public static TypePair Create<T1, T2>()
Create a type pair through generic means.
Type pair.

Create<T1, T2>

#
public static TypePair Create<T1, T2>(T1 argument1, T2 argument2)
Create a type pair through generic means.
argument1 (T1)
argument2 (T2)
Type pair.

GetHashCode

#
public override int GetHashCode()
Serves as the default hash function.
A hash code for the current object.

GetNameCode

#
public string GetNameCode()
Gets a string description of this typepair.
Explicit

IComparable<TypePair>.CompareTo

#
int IComparable<TypePair>.CompareTo(TypePair other)
other (TypePair)
Explicit

IEquatable<TypePair>.Equals

#
other (TypePair)

ToString

#
public override string ToString()
Returns a string that represents the current object.
A string that represents the current object.
Object.ToString