Table of Contents

Method Equals

Namespace
PaintDotNet
Assembly
PaintDotNet.Fundamentals.dll

Equals<TThis, TOther>(TThis, TOther?)

This is a utility method you can call from your override of System.Object.Equals(object) when you have already implemented IEquatable<TThis>.Equals(TThis other).

public static bool Equals<TThis, TOther>(TThis @this, TOther? obj) where TThis : TOther, IEquatable<TThis>

Parameters

this TThis
obj TOther

Returns

bool

Type Parameters

TThis
TOther