Skip to content

N_CodeJam

Andrew Koryavchenko edited this page Jun 17, 2018 · 20 revisions

CodeJam Namespace

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.

Classes

 

Class Description
Public class Algorithms Miscellaneous algorithms
Public class Code Assertions class.
Public class CodeExceptions Exception factory class
Public class DebugCode Debug-time assertions class. Common constants
Public class DebugEnumCode Enum assertions class.
Public class DebugUriCode URI assertions class.
Public class Disposable Helper methods for IDisposable
Public class DisposableExtensions The IDisposable extensions.
Public class EnumCode Enum assertions class.
Public class EnumCodeExceptions Enum exception factory class
Public class EnumHelper Extension methods for Enum types
Public class EnumValue Enum value information.
Public class EnumValues Holds information about enum members
Public class ExceptionExtensions The Exception class extensions.
Public class Fn Helper methods for Func(TResult)(Func(TResult)) and delegates.
Public class Fn(T) Helper methods for Func(TResult)
Public class HashCode Hash code helper methods.
Public class HGlobal HGlobal wrapper.
Public class HGlobalScope Wraps AllocHGlobal(IntPtr) and FreeHGlobal(IntPtr).
Public class HGlobalScope(T) Wraps Mashal.AllocHGlobal and Marshal.FreeHGlobal using generic.
Public class Lazy Helper methods for Lazy(T) class.
Public class Memory The utility class for working with arrays of primitive types.
Public class NullableHelper Helper method for nullable types.
Public class OneOf(T1, T2) Tagged union for 2 types.
Public class OneOf(T1, T2, T3) Tagged union for 3 types.
Public class OneOf(T1, T2, T3, T4) Tagged union for 4 types.
Public class OneOf(T1, T2, T3, T4, T5) Tagged union for 5 types.
Public class OneOf(T1, T2, T3, T4, T5, T6) Tagged union for 6 types.
Public class OneOf(T1, T2, T3, T4, T5, T6, T7) Tagged union for 7 types.
Public class OneOf(T1, T2, T3, T4, T5, T6, T7, T8) Tagged union for 8 types.
Public class Option Methods to work with Option
Public class Option(T) Represents an optional value.
Public class Option(T).None Represents an Option without value.
Public class Option(T).Some Represents an Option with value.
Public class PlatformDependent Switches for features depending on platform targeting
Public class UriCode URI assertions class.
Public class UriCodeExceptions Uri exception factory class
Public class UriHelper Helper methods for Uri class.
Public class ValueOption Methods to work with ValueOption

Structures

 

Structure Description
Public structure Disposable.EmptyDisposable The IDisposable implementation with no action on Dispose()
Public structure ValueOneOf(T1, T2) Value type tagged union for 2 types.
Public structure ValueOneOf(T1, T2, T3) Value type tagged union for 3 types.
Public structure ValueOneOf(T1, T2, T3, T4) Value type tagged union for 4 types.
Public structure ValueOneOf(T1, T2, T3, T4, T5) Value type tagged union for 5 types.
Public structure ValueOneOf(T1, T2, T3, T4, T5, T6) Value type tagged union for 6 types.
Public structure ValueOneOf(T1, T2, T3, T4, T5, T6, T7) Value type tagged union for 7 types.
Public structure ValueOneOf(T1, T2, T3, T4, T5, T6, T7, T8) Value type tagged union for 8 types.
Public structure ValueOption(T) Represents a value type that can be assigned null.

Interfaces

 

Interface Description
Public interface IOneOf(T1, T2) Common interface for OneOf(T1, T2) and ValueOneOf(T1, T2).
Public interface IOneOf(T1, T2, T3) Common interface for OneOf(T1, T2, T3) and ValueOneOf(T1, T2, T3).
Public interface IOneOf(T1, T2, T3, T4) Common interface for OneOf(T1, T2, T3, T4) and ValueOneOf(T1, T2, T3, T4).
Public interface IOneOf(T1, T2, T3, T4, T5) Common interface for OneOf(T1, T2, T3, T4, T5) and ValueOneOf(T1, T2, T3, T4, T5).
Public interface 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).
Public interface 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).
Public interface 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).
Public interface IOption(T) Option(T) and ValueOption(T) common interface.
 
Clone this wiki locally