Skip to content

N_CodeJam

andrewvk edited this page Apr 25, 2016 · 20 revisions

CodeJam Namespace

[This is preliminary documentation and is subject to change.]

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 Fn Helper methods for Func(TResult) delegate.
Public class Fn(T) Helper methods for Func(TResult)
Public class HashCode Hash code helper methods.
Public class Memory The utility class for working with arrays of primitive types.
Public class Option Methods to work with Option(T)
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 Option(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 IValueTuple Common interface for all tuples.
 
Clone this wiki locally