FSharp.Core Namespace
Basic definitions of operators, options, functions, results, choices, attributes and plain text formatting.
Contents
- Basic Types
- Basic Operators
- Options
- Strings and Text
- Choices and Results
- Basic Types with Units of Measure
- ByRef and Pointer Types
- Attributes
- Language Primitives
Basic Types
| Type | Description |
|
An abbreviation for the CLI type Boolean. |
|
|
An abbreviation for the CLI type Byte. |
|
|
An abbreviation for the CLI type Char. |
|
|
An abbreviation for the CLI type Double. |
|
|
An abbreviation for the CLI type Single. |
|
|
An abbreviation for the CLI type Int32. |
|
|
An abbreviation for the CLI type Int16. |
|
|
An abbreviation for the CLI type Int32. |
|
|
An abbreviation for the CLI type Int64. |
|
|
An abbreviation for the CLI type SByte. |
|
|
An abbreviation for the CLI type Object. |
|
|
An abbreviation for the CLI type Object or null. With the 'nullable reference types' feature, this is an alias to 'obj | null'. |
|
|
An abbreviation for the CLI type SByte. |
|
|
An abbreviation for the CLI type UInt32. |
|
|
An abbreviation for the CLI type UInt16. |
|
|
An abbreviation for the CLI type UInt32. |
|
|
An abbreviation for the CLI type UInt64. |
|
|
An abbreviation for the CLI type Byte. |
|
Basic Operators
| Modules | Description |
Options
| Type/Module | Description |
Strings and Text
| Modules | Description |
|
Functional programming operators for string processing. Further string operations are available via the member functions on strings and other functionality in System.String and System.Text.RegularExpressions types. |
Choices and Results
| Type/Module | Description |
|
Contains operations for working with values of type Result. |
|
Basic Types with Units of Measure
| Type | Description |
|
The type of 8-bit unsigned integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Byte. |
|
|
The type of decimal numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Decimal. |
|
|
The type of double-precision floating point numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Double. |
|
|
The type of double-precision floating point numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Double. |
|
|
The type of single-precision floating point numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Single. |
|
|
The type of 32-bit signed integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Int32. |
|
|
The type of 16-bit signed integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Int16. |
|
|
The type of 32-bit signed integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Int32. |
|
|
The type of 64-bit signed integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Int64. |
|
|
The type of 8-bit signed integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to SByte. |
|
|
The type of machine-sized signed integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to IntPtr. |
|
|
The type of 8-bit signed integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to SByte. |
|
|
The type of single-precision floating point numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Single. |
|
|
The type of 32-bit unsigned integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to UInt32. |
|
|
The type of 16-bit unsigned integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to UInt16. |
|
|
The type of 32-bit unsigned integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to UInt32. |
|
|
The type of 64-bit unsigned integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to UInt64. |
|
|
The type of 8-bit unsigned integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to Byte. |
|
|
The type of machine-sized unsigned integer numbers, annotated with a unit of measure. The unit of measure is erased in compiled code and when values of this type are analyzed using reflection. The type is representationally equivalent to UIntPtr. |
ByRef and Pointer Types
| Type/Module | Description |
Attributes
| Type | Description |
|
Adding this attribute to a type indicates it is a type where comparison is an abnormal operation. This means that the type does not satisfy the F# 'comparison' constraint. Within the bounds of the F# type system, this helps ensure that the F# generic comparison function is not instantiated directly at this type. The attribute and checking does not constrain the use of comparison with base or child types of this type. |
|
|
This attribute is used to tag values that may not be dynamically invoked at runtime. This is typically added to inlined functions whose implementations include unverifiable code. It causes the method body emitted for the inlined function to raise an exception if dynamically invoked, rather than including the unverifiable code in the generated assembly. |
|
|
Adding this attribute to a type indicates it is a type where equality is an abnormal operation. This means that the type does not satisfy the F# 'equality' constraint. Within the bounds of the F# type system, this helps ensure that the F# generic equality function is not instantiated directly at this type. The attribute and checking does not constrain the use of comparison with base or child types of this type. |
|
|
This attribute is used to mark how a type is displayed by default when using
'%A' printf formatting patterns and other two-dimensional text-based display layouts.
In this version of F# valid values are of the form |
|
Language Primitives
| Type/Module | Description |