How Reference Types Are Compared by Using Comparison Interfaces

Interface

Description

IComparable

Defines a generalized comparison method that a vaiue type or class implements to create a type-speciiic comparison method

lEquatable

Applies only to generics. You can use this interface to check the equality between instances of a particular type

Was this article helpful?

0 0

Post a comment