[Home] Type Microsoft.FSharp.Core.StructuralEqualityAttribute


Adding this attribute to a record, union or struct type with value 'false' confirms the automatic generation of overrides for 'System.Object.Equals(obj)' and 'System.Object.GetHashCode()' for the type. This attribute is usually used in conjunction with StructuralComparison(false) to generate a type that supports structural equality but not structural comparison.

Full Type Signature

[<AttributeUsage (enum<AttributeTargets> (4))>]
type StructuralEqualityAttribute = class
                                     inherit Attribute
                                   end
                                   with
                                     new : value:bool -> StructuralEqualityAttribute
                                     new : unit -> StructuralEqualityAttribute
                                     member Value : bool
                                   end

Instance Members

MemberDescription
member Value : bool

Static Members

MemberDescription
new : value:bool -> StructuralEqualityAttribute
new : unit -> StructuralEqualityAttribute

See Also

Microsoft.FSharp.Core


Documentation for assembly FSharp.Core, version 1.9.4.19, generated using F# version 1.9.4.19