StructuralComparisons 类

定义

提供用于执行两个集合对象的结构化比较的对象。Provides objects for performing a structural comparison of two collection objects.

public ref class StructuralComparisons abstract sealed
public static class StructuralComparisons
type StructuralComparisons = class
Public Class StructuralComparisons
继承
StructuralComparisons

注解

StructuralComparisons 类返回以下两个预定义的比较对象:The StructuralComparisons class returns the following two predefined comparison objects:

对象可用于对两个集合对象(如数组或元组对象)执行结构比较或结构相等比较。The objects can be used to perform a structural comparison or a structural equality comparison of two collection objects, such as array or tuple objects. 在结构比较中,将根据它们的值比较两个对象。In structural comparison, two objects are compared based on their values. 可以根据某些条件对对象进行排序,如果两个对象具有相等的值,则将它们视为相等,而不是因为它们引用相同的物理对象Objects can be ordered based on some criteria, and two objects are considered equal when they have equal values, not because they reference the same physical object

属性

StructuralComparer

获取可执行两个对象的结构比较的预定义对象。Gets a predefined object that performs a structural comparison of two objects.

StructuralEqualityComparer

获取一个可比较两个对象的结构是否相等的预定义对象。Gets a predefined object that compares two objects for structural equality.

适用于