-
Notifications
You must be signed in to change notification settings - Fork 35
N_CodeJam
Andrew Koryavchenko edited this page Jun 17, 2018
·
20 revisions
The CodeJam namespace contains classes that contains commonly-used functionality.
Classes also provide some useful algorithms, common assertion methods, helpers for IDisposable, useful Func(TResult) instances.
Class | Description | |
---|---|---|
Algorithms | Miscellaneous algorithms | |
Code | Assertions class. | |
CodeExceptions | Exception factory class | |
DebugCode | Debug-time assertions class. Common constants | |
DebugEnumCode | Enum assertions class. | |
DebugUriCode | URI assertions class. | |
Disposable | Helper methods for IDisposable | |
DisposableExtensions | The IDisposable extensions. | |
EnumCode | Enum assertions class. | |
EnumCodeExceptions | Enum exception factory class | |
EnumHelper | Extension methods for Enum types | |
EnumValue | Enum value information. | |
EnumValues | Holds information about enum members | |
ExceptionExtensions | The Exception class extensions. | |
Fn | Helper methods for Func(TResult)(Func(TResult)) and delegates. | |
Fn(T) | Helper methods for Func(TResult) | |
HashCode | Hash code helper methods. | |
HGlobal | HGlobal wrapper. | |
HGlobalScope | Wraps AllocHGlobal(IntPtr) and FreeHGlobal(IntPtr). | |
HGlobalScope(T) | Wraps Mashal.AllocHGlobal and Marshal.FreeHGlobal using generic. | |
Lazy | Helper methods for Lazy(T) class. | |
Memory | The utility class for working with arrays of primitive types. | |
NullableHelper | Helper method for nullable types. | |
OneOf(T1, T2) | Tagged union for 2 types. | |
OneOf(T1, T2, T3) | Tagged union for 3 types. | |
OneOf(T1, T2, T3, T4) | Tagged union for 4 types. | |
OneOf(T1, T2, T3, T4, T5) | Tagged union for 5 types. | |
OneOf(T1, T2, T3, T4, T5, T6) | Tagged union for 6 types. | |
OneOf(T1, T2, T3, T4, T5, T6, T7) | Tagged union for 7 types. | |
OneOf(T1, T2, T3, T4, T5, T6, T7, T8) | Tagged union for 8 types. | |
Option | Methods to work with Option | |
Option(T) | Represents an optional value. | |
Option(T).None | Represents an Option without value. | |
Option(T).Some | Represents an Option with value. | |
PlatformDependent | Switches for features depending on platform targeting | |
UriCode | URI assertions class. | |
UriCodeExceptions | Uri exception factory class | |
UriHelper | Helper methods for Uri class. | |
ValueOption | Methods to work with ValueOption |
Structure | Description | |
---|---|---|
Disposable.EmptyDisposable | The IDisposable implementation with no action on Dispose() | |
ValueOneOf(T1, T2) | Value type tagged union for 2 types. | |
ValueOneOf(T1, T2, T3) | Value type tagged union for 3 types. | |
ValueOneOf(T1, T2, T3, T4) | Value type tagged union for 4 types. | |
ValueOneOf(T1, T2, T3, T4, T5) | Value type tagged union for 5 types. | |
ValueOneOf(T1, T2, T3, T4, T5, T6) | Value type tagged union for 6 types. | |
ValueOneOf(T1, T2, T3, T4, T5, T6, T7) | Value type tagged union for 7 types. | |
ValueOneOf(T1, T2, T3, T4, T5, T6, T7, T8) | Value type tagged union for 8 types. | |
ValueOption(T) | Represents a value type that can be assigned null. |
Interface | Description | |
---|---|---|
IOneOf(T1, T2) | Common interface for OneOf(T1, T2) and ValueOneOf(T1, T2). | |
IOneOf(T1, T2, T3) | Common interface for OneOf(T1, T2, T3) and ValueOneOf(T1, T2, T3). | |
IOneOf(T1, T2, T3, T4) | Common interface for OneOf(T1, T2, T3, T4) and ValueOneOf(T1, T2, T3, T4). | |
IOneOf(T1, T2, T3, T4, T5) | Common interface for OneOf(T1, T2, T3, T4, T5) and ValueOneOf(T1, T2, T3, T4, T5). | |
IOneOf(T1, T2, T3, T4, T5, T6) | Common interface for OneOf(T1, T2, T3, T4, T5, T6) and ValueOneOf(T1, T2, T3, T4, T5, T6). | |
IOneOf(T1, T2, T3, T4, T5, T6, T7) | Common interface for OneOf(T1, T2, T3, T4, T5, T6, T7) and ValueOneOf(T1, T2, T3, T4, T5, T6, T7). | |
IOneOf(T1, T2, T3, T4, T5, T6, T7, T8) | Common interface for OneOf(T1, T2, T3, T4, T5, T6, T7, T8) and ValueOneOf(T1, T2, T3, T4, T5, T6, T7, T8). | |
IOption(T) | Option(T) and ValueOption(T) common interface. |