Table of Contents

Method OperatorEquals

Namespace
PaintDotNet
Assembly
PaintDotNet.Fundamentals.dll

OperatorEquals<T>(T?, T?)

This is a utility method you can call from your implementation of operator== when you have already implemented IEquatable<T>.Equals(T other).

public static bool OperatorEquals<T>(T? a, T? b) where T : class, IEquatable<T>

Parameters

a T
b T

Returns

bool

Type Parameters

T