@@ -2,48 +2,56 @@ namespace FsToolkit.ErrorHandling
22
33open System
44
5+ /// Represents errors that occur during application execution. In F# 9.0 and later, this type is marked as nullable.
56type ExceptionNull =
67#if NET9_ 0_ OR_ GREATER && ! FABLE_ COMPILER
78 Exception | null
89#else
910 Exception
1011#endif
1112
13+ /// Provides a mechanism for releasing unmanaged resources. In F# 9.0 and later, this type is marked as nullable.
1214type IDisposableNull =
1315#if NET9_ 0_ OR_ GREATER && ! FABLE_ COMPILER
1416 IDisposable | null
1517#else
1618 IDisposable
1719#endif
1820
21+ /// Provides a mechanism for releasing unmanaged resources asynchronously. In F# 9.0 and later, this type is marked as nullable.
1922type IAsyncDisposableNull =
2023#if NET9_ 0_ OR_ GREATER && ! FABLE_ COMPILER
2124 IAsyncDisposable | null
2225#else
2326 IAsyncDisposable
2427#endif
2528
29+ /// An abbreviation for the CLI type System.Object. In F# 9.0 and later, this type is marked as nullable.
2630type ObjNull =
2731#if NET9_ 0_ OR_ GREATER && ! FABLE_ COMPILER
2832 objnull
2933#else
3034 obj
3135#endif
3236
37+
38+ /// An abbreviation for the CLI type System.Collections.Generic.IEnumerable. In F# 9.0 and later, this type is marked as nullable.
3339type SeqNull < 'T > =
3440#if NET9_ 0_ OR_ GREATER && ! FABLE_ COMPILER
3541 seq< 'T> | null
3642#else
3743 seq< 'T>
3844#endif
3945
46+ /// An abbreviation for the CLI type System.String. In F# 9.0 and later, this type is marked as nullable.
4047type StringNull =
4148#if NET9_ 0_ OR_ GREATER && ! FABLE_ COMPILER
4249 string | null
4350#else
4451 string
4552#endif
4653
54+ /// An abbreviation for the CLI type System.Collections.Generic.List`1 . In F# 9.0 and later, this type is marked as nullable.
4755type ResizeArrayNull < 'T > =
4856#if NET9_ 0_ OR_ GREATER && ! FABLE_ COMPILER
4957 ResizeArray< 'T> | null
@@ -55,8 +63,10 @@ type ResizeArrayNull<'T> =
5563module internal Nullness =
5664
5765#if NET9_ 0_ OR_ GREATER && ! FABLE_ COMPILER
66+ /// Throw a System.ArgumentNullException if the given value is null exceptio
5867 let inline nullArgCheck name value = nullArgCheck name value
5968#else
69+ /// Throw a System.ArgumentNullException if the given value is null exceptio
6070 let inline nullArgCheck ( name : string ) ( value : 'T ) : 'T =
6171 if isNull value then
6272 raise ( ArgumentNullException( name))
0 commit comments