A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://fsharp.github.io/fsharp-core-docs/reference/fsharp-core-equalityconditionalonattribute.html below:

EqualityConditionalOnAttribute (FSharp.Core) | FSharp.Core

EqualityConditionalOnAttribute Type
Namespace: FSharp.Core
Assembly: FSharp.Core.dll
Base Type: Attribute
This is an attribute type definition

This attribute is used to indicate a generic container type satisfies the F# 'equality' constraint only if a generic argument also satisfies this constraint.

For example, adding this attribute to parameter 'T on a type definition C<'T> means that a type C only supports equality if the type X also supports equality and all other conditions for C to support equality are also met. The type C<'T> can still be used with other type arguments, but a type such as C<(int -> int)> will not support equality because the type (int -> int) is an F# function type and does not support equality. This attribute will be ignored if it is used on the generic parameters of functions or methods.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4