Skip to content

N_CodeJam

andrewvk edited this page Jul 1, 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 Disposable Helper methods for IDisposable
Public class DisposableExtensions The IDisposable extensions.
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 Wraps Mashal.AllocHGlobal and Marshal.FreeHGlobal.
Public class HGlobal(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
Public class ValueTuple Provides static methods for creating tuple structs.

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.
Public structure ValueTuple(T1, T2) Represents a 2-tuple.
Public structure ValueTuple(T1, T2, T3) Represents a 3-tuple.
Public structure ValueTuple(T1, T2, T3, T4) Represents a 4-tuple.
Public structure ValueTuple(T1, T2, T3, T4, T5) Represents a 5-tuple.
Public structure ValueTuple(T1, T2, T3, T4, T5, T6) Represents a 6-tuple.
Public structure ValueTuple(T1, T2, T3, T4, T5, T6, T7) Represents a 7-tuple.
Public structure ValueTuple(T1, T2, T3, T4, T5, T6, T7, T8) Represents a 8-tuple.

Interfaces

 

Interface Description
Public interface IOption(T) Option(T) and ValueOption(T) common interface.
Public interface IValueTuple Common interface for all tuples.
 
Clone this wiki locally