Table of Contents

Struct Pair<T1, T2>

Namespace
PaintDotNet
Assembly
PaintDotNet.PropertySystem.dll

A struct containing two elements.

public readonly struct Pair<T1, T2> : IEquatable<Pair<T1, T2>>

Type Parameters

T1
T2
Implements
IEquatable<Pair<T1, T2>>
Inherited Members

Remarks

It is recommended that you use the family of .NET's built-in ValueTuple structs, along with C#'s anonymous tuple syntax instead of this struct.

This struct is only used by the PropertySystem's DoubleVectorProperty, and even that is no longer necessary since it can now work directly with Vector2Double.

Constructors

Pair(T1, T2)

Properties

First
Second

Methods

Equals(Pair<T1, T2>)
Equals(object?)
GetHashCode()

Operators

operator ==(Pair<T1, T2>, Pair<T1, T2>)
implicit operator Tuple<T1, T2>(Pair<T1, T2>)
implicit operator (T1, T2)(Pair<T1, T2>)
implicit operator Pair<T1, T2>(Tuple<T1, T2>)
implicit operator Pair<T1, T2>((T1, T2))
operator !=(Pair<T1, T2>, Pair<T1, T2>)