Click or drag to resize

Orthogonal.Common.Basic Namespace

Original library utility classes that depend only upon the standard .NET Framework 4.0 class libraries.
Classes
 ClassDescription
Public classDamm Implementation of the Damm decimal check digit algorithm. See Damm algorithm.
Public classMathUtils A static class of interesting maths methods that are of little practical value.
Public classNiceFormatter A static class of extension methods that convert a variety of types into "nicely" formatted strings. Integers can be formatted as bit strings. A byte array can be formatted with the middle truncated. Tab separated lines or arrays of objects can be formatted as tables made out of box characters.
Public classSafeObservableCollectionT

An observable collection specifically designed to contain objects that implement INotifyPropertyChanged.

As objects are added and removed from the collection, property changed handlers are automatically added and removed from the objects. As well as raising the standard collection changed event, it also raises the property changed event for any object in the collection that is changed. The collection effectively aggregates property changed handling for all of its items.

Public classSimpleFileCache A simple utility class that uses a temp folder as a cache for XML serialized objects.
Public classSimpleFileCacheJson A clone of the old and simple SimpleFileCache class that uses JSON serialization instead and has an option set to allow processing of an object graph that might contain circular references.
Public classSimpleParse A very simple parser for an argument array that follows a popular modern convention where positional arguments preceed the first switch in the format /name. Each switch can have zero or more values that follow it in the format /name value1 value2 ... until the next switch or end of arguments is reached. Multiple switches of the same name have their values merged. The arguments are not validated during parsing, they are just placed into arrays of the two argument types (Positional and Switch) and convenient methods are provided to query them.
Public classSwitch Encapsulates information parsed by a command line switch by the SimpleParse class.
Public classVerhoeff Implementation of the Verhoeff decimal check digit algorithm.
Enumerations
 EnumerationDescription
Public enumerationRhoCallbackReason An enumeration of the reason for a callback from the MathUtils.PollardRhoFactor method.