StructuralComparisons クラス
定義
2 つのコレクション オブジェクトの構造比較を実行するオブジェクトを提供します。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クラスは、次の2つの定義済み比較オブジェクトを返します。The StructuralComparisons class returns the following two predefined comparison objects:
IComparer Array.IStructuralComparable.CompareTo(Object, IComparer) Tuple<T1,T2,T3>.IStructuralComparable.CompareTo(Object, IComparer) 2 つのオブジェクトの構造比較を実行するために、やなどのメソッドに渡すことができる実装。An IComparer implementation that can be passed to a method such as Array.IStructuralComparable.CompareTo(Object, IComparer) or Tuple<T1,T2,T3>.IStructuralComparable.CompareTo(Object, IComparer) to perform a structural comparison of two objects. 並べ替え順序において、最初のオブジェクトが2番目のオブジェクトの前、後ろ、または同じ位置で発生するかどうかを示すように設計されています。It is designed to indicate whether the first object precedes, follows, or occurs in the same position as the second object in the sort order.
IEqualityComparer Array.IStructuralEquatable.Equals(Object, IEqualityComparer) Tuple<T1,T2,T3>.IStructuralEquatable.Equals(Object, IEqualityComparer) 構造体の等価性の比較を実行するために、やなどのメソッドに渡すことができる実装。An IEqualityComparer implementation that can be passed to a method such as Array.IStructuralEquatable.Equals(Object, IEqualityComparer) or Tuple<T1,T2,T3>.IStructuralEquatable.Equals(Object, IEqualityComparer) to perform a comparison for structural equality.
オブジェクトを使用すると、配列や組オブジェクトなど、2つのコレクションオブジェクトの構造比較または構造的等価比較を実行できます。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. 構造的な比較では、2つのオブジェクトが値に基づいて比較されます。In structural comparison, two objects are compared based on their values. オブジェクトはいくつかの条件に基づいて並べ替えることができ、2つのオブジェクトは同じ物理オブジェクトを参照するのではなく、等しい値を持つ場合は等しいと見なされます。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 |
2 つのオブジェクトの構造比較を実行する定義済みのオブジェクトを取得します。Gets a predefined object that performs a structural comparison of two objects. |
StructuralEqualityComparer |
2 つのオブジェクトの構造上の等価性を比較する定義済みのオブジェクトを取得します。Gets a predefined object that compares two objects for structural equality. |