共用方式為


Collections.IStructuralEquatable 介面 (F#)

定義支援物件之結構相等比較的方法。

命名空間/模組路徑:System.Collections

組件:FSharp.Core (在 FSharp.Core.dll 中)

type IStructuralEquatable =
 interface
  abstract this.Equals : obj * IEqualityComparer -> bool
  abstract this.GetHashCode : IEqualityComparer -> int
 end

備註

這個型別僅可搭配 F# 核心程式庫版本以 .NET Framework 2.0 為目標。 如果您是使用 .NET Framework 4,請使用名稱一樣是 IStructuralEquatable 的 .NET Framework 4 型別。

執行個體成員

成員

描述

Equals

根據具有所指定比較子之目標物件的相等比較。

GetHashCode

傳回目前執行個體的雜湊程式碼。

平台

Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2

版本資訊

F# 核心程式庫版本

支援版本:2.0

請參閱

參考

System.Collections 命名空間 (F#)