Header menu logo F# Compiler Guide

FSharpGenericParameterConstraint Type

Represents a constraint on a generic type parameter

Instance members

Instance member Description

this.CoercesToTarget

Full Usage: this.CoercesToTarget

Returns: FSharpType

Gets further information about a coerces-to constraint

Returns: FSharpType

this.DefaultsToConstraintData

Full Usage: this.DefaultsToConstraintData

Returns: FSharpGenericParameterDefaultsToConstraint

Gets further information about a defaults-to constraint

Returns: FSharpGenericParameterDefaultsToConstraint

this.DelegateConstraintData

Full Usage: this.DelegateConstraintData

Returns: FSharpGenericParameterDelegateConstraint

Gets further information about a delegate constraint

Returns: FSharpGenericParameterDelegateConstraint

this.EnumConstraintTarget

Full Usage: this.EnumConstraintTarget

Returns: FSharpType

Gets further information about an enumeration constraint

Returns: FSharpType

this.IsCoercesToConstraint

Full Usage: this.IsCoercesToConstraint

Returns: bool

Indicates a constraint that a type is a subtype of the given type

Returns: bool

this.IsComparisonConstraint

Full Usage: this.IsComparisonConstraint

Returns: bool

Indicates a constraint that a type supports F# generic comparison

Returns: bool

this.IsDefaultsToConstraint

Full Usage: this.IsDefaultsToConstraint

Returns: bool

Indicates a default value for an inference type variable should it be neither generalized nor solved

Returns: bool

this.IsDelegateConstraint

Full Usage: this.IsDelegateConstraint

Returns: bool

Indicates a constraint that a type is a delegate from the given tuple of args to the given return type

Returns: bool

this.IsEnumConstraint

Full Usage: this.IsEnumConstraint

Returns: bool

Indicates a constraint that a type is an enum with the given underlying

Returns: bool

this.IsEqualityConstraint

Full Usage: this.IsEqualityConstraint

Returns: bool

Indicates a constraint that a type supports F# generic equality

Returns: bool

this.IsMemberConstraint

Full Usage: this.IsMemberConstraint

Returns: bool

Indicates a constraint that a type has a member with the given signature

Returns: bool

this.IsNonNullableValueTypeConstraint

Full Usage: this.IsNonNullableValueTypeConstraint

Returns: bool

Indicates a constraint that a type is a non-Nullable value type

Returns: bool

this.IsReferenceTypeConstraint

Full Usage: this.IsReferenceTypeConstraint

Returns: bool

Indicates a constraint that a type is a reference type

Returns: bool

this.IsRequiresDefaultConstructorConstraint

Full Usage: this.IsRequiresDefaultConstructorConstraint

Returns: bool

Indicates a constraint that a type has a parameterless constructor

Returns: bool

this.IsSimpleChoiceConstraint

Full Usage: this.IsSimpleChoiceConstraint

Returns: bool

Indicates a constraint that is a type is a simple choice between one of the given ground types. Used by printf format strings.

Returns: bool

this.IsSupportsNullConstraint

Full Usage: this.IsSupportsNullConstraint

Returns: bool

Indicates a constraint that a type has a 'null' value

Returns: bool

this.IsUnmanagedConstraint

Full Usage: this.IsUnmanagedConstraint

Returns: bool

Indicates a constraint that a type is an unmanaged type

Returns: bool

this.MemberConstraintData

Full Usage: this.MemberConstraintData

Returns: FSharpGenericParameterMemberConstraint

Gets further information about a member constraint

Returns: FSharpGenericParameterMemberConstraint

this.SimpleChoices

Full Usage: this.SimpleChoices

Returns: IList<FSharpType>

Gets further information about a choice constraint

Returns: IList<FSharpType>

Type something to start searching.