[Home] Type Microsoft.FSharp.Core.ReferenceEqualityAttribute


Adding this attribute to a record or union type disables the automatic generation of overrides for 'System.Object.Equals(obj)', 'System.Object.GetHashCode()' and 'System.IComparable' for the type. The type will by default use reference equality. This is identical to adding attributes StructuralEquality(false) and StructuralComparison(false).

Full Type Signature

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

Instance Members

MemberDescription
member Value : bool

Static Members

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

See Also

Microsoft.FSharp.Core


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