What problem does IStructuralEquatable and IStructuralComparable solve?

后端 未结 6 2088
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 15:32

I\'ve noticed these two interfaces, and several associated classes, have been added in .NET 4. They seem a bit superfluous to me; I\'ve read several blogs about them, but I

6条回答
  •  一生所求
    2020-11-27 15:58

    The description of the IStructuralEquatable Interface says (in the "Remarks" section):

    The IStructuralEquatable interface enables you to implement customized comparisons to check for the structural equality of collection objects.

    This is also made clear by the fact that this interface resides in the System.Collections namespace.

提交回复
热议问题