Skip to content

N_CodeJam

andrewvk edited this page Nov 5, 2016 · 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 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 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 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 ValueOption Methods to work with ValueOption

Structures

 

Structure Description
Public structure Disposable.EmptyDisposable The IDisposable implementation with no action on Dispose()
Public structure ValueOption(T) Represents a value type that can be assigned null.

Interfaces

 

Interface Description
Public interface IOption(T) Option(T) and ValueOption(T) common interface.
 
Clone this wiki locally