Table of Contents

Namespace Cuemon

Assembly: Cuemon.Core.dll

The Cuemon namespace contains fundamental types such as value and reference types, factories and utility classes, interfaces, attributes and feature rich delegates to support functional programming to a whole new level. The namespace is an addition to the System namespace.

Availability: .NET 8, .NET 7, .NET 6 and .NET Standard 2.0

Complements: System namespace 🔗

Related: Cuemon.Extensions namespace 📘

Classes

ActionFactory

Provides access to factory methods for creating ActionFactory<TTuple> instances that encapsulate a delegate with a variable amount of generic arguments.

ActionFactory<TTuple>

Provides an easy way of invoking an System.Action delegate regardless of the amount of parameters provided.

Alphanumeric

Provides a set of alphanumeric constant and static fields that consists of both letters, numbers and other symbols (such as punctuation marks and mathematical symbols).

BinaryPrefix

Defines a binary unit prefix for multiples of measurement for data that refers strictly to powers of 2. This class cannot be inherited.

BitStorageCapacity

Represent a table of both binary and metric prefixes for a BitUnit. This class cannot be inherited from.

BitUnit

Represents a unit of measurement for bits and is used with measurement of data.

ByteArrayDecoratorExtensions

Extension methods for the byte[] hidden behind the IDecorator<T> interface.

ByteStorageCapacity

Represent a table of both binary and metric prefixes for a ByteUnit. This class cannot be inherited from.

ByteUnit

Represents a unit of measurement for bytes and is used with measurement of data.

Calculator

Provides a set of static methods for generic arithmetic assignment operations.

CharDecoratorExtensions

Extension methods for the System.Char struct hidden behind the IDecorator<T> interface.

Condition

Provide ways to verify conditions a generic way for countless scenarios using true/false propositions.

ConditionalValue

Represents the base class to determine whether an operation was a success or not.

ConditionalValue<TResult>

Represents the base class to support the Try-Parse pattern of an operation that may be asynchronous in nature.

Convertible

Provides a set of static methods, suitable for verifying integrity of data, that convert System.IConvertible implementations to and from a sequence of bytes.

ConvertibleConverterDictionary

Represents a collection of function delegates that converts an System.IConvertible implementation to its byte[] equivalent.

ConvertibleOptions

Configuration options for Convertible.

DataPair

Represents a generic way to provide information about arbitrary data.

DataPair<T>

Represents a generic way to provide information about arbitrary data.

DateTimeDecoratorExtensions

Extension methods for the System.DateTime struct hidden behind the IDecorator<T> interface.

DateTimeRange

Represents a period of time between two System.DateTime values.

DayPart

Represents a part of a day. The built-in parts of day supports a roughly way to determine whether it is; Night, Morning, Forenoon, Afternoon or Evening. Keep in mind that there is no exact science for day parts; it is as much a cultural as it is a personal preference.

DecimalPrefix

Defines a decimal (metric) unit prefix for multiples and submultiples of measurement that refers strictly to powers of 10. This class cannot be inherited.

Decorator

Provides a way to support hiding of non-common extension methods by enclosing/wrapping an object within the IDecorator<T> interface.

Decorator<T>

Provides a generic way to support hiding of non-common extension methods by enclosing/wrapping an object within the IDecorator<T> interface.

DelimitedString

Provides a set of static methods to convert a sequence into a delimited string and break a delimited string into substrings.

DelimitedStringOptions

Configuration options for Split(String, Action<DelimitedStringOptions>).

DelimitedStringOptions<T>

Configuration options for DelimitedString.

Disposable

Provides a mechanism for releasing both managed and unmanaged resources with focus on the former. Implements the System.IDisposable

DisposableOptions

Configuration options for System.IDisposable.

DoubleDecoratorExtensions

Extension methods for the System.Double struct hidden behind the IDecorator<T> interface.

EndianOptions

Configuration options for System.BitConverter.

Eradicate

Provides a set of static methods for eradicating different types of values or sequences of values.

ExceptionCondition<TException>

Provides a fluent and generic way to setup a condition for raising an System.Exception.

ExceptionDecoratorExtensions

Extension methods for the System.Exception class hidden behind the IDecorator<T> interface.

ExceptionHandler<TException>

Provides a generic way to handle an System.Exception.

ExceptionHandler<TException, TResult>

Provides a generic way to handle an System.Exception.

ExceptionInsights

Provides a set of static methods for embedding environment specific insights to an exception.

ExceptionInvoker<TException>

Provides a generic way to throw an System.Exception.

ExceptionInvoker<TException, TResult>

Provides a generic way to throw an System.Exception.

FinalizeDisposable

Provides a mechanism for releasing both managed and unmanaged resources with focus on the latter. Implements the Disposable

FormattingOptions

Configuration options for System.IFormatProvider.

FuncFactory

Provides access to factory methods for creating FuncFactory<TTuple, TResult> instances that encapsulate a function delegate with a variable amount of generic arguments.

FuncFactory<TTuple, TResult>

Provides an easy way of invoking an System.Func<TResult> function delegate regardless of the amount of parameters provided.

Generate

Provides a set of static methods for generating different types of values or sequences of values.

Hierarchy

Provides a set of static methods for hierarchy related operations.

Hierarchy<T>

Represents a way to expose a node of a hierarchical structure, including the node object of type T.

HierarchyDecoratorExtensions

Extension methods for the IHierarchy<T> interface hidden behind the IDecorator<T> interface.

IndexMapping

Defines the mapping between a column/field/item in a data source and a column/field/item in the data destination. This class cannot be inherited.

Initializer

Provides a generic way to wrap and initialize a class for countless scenarios.

InitializerBuilder<T>

Supports the Initializer for building custom initializers.

IntegerDecoratorExtensions

Extension methods for the System.Int16, System.Int32 and System.Int64 structs hidden behind the IDecorator<T> interface.

Mapping

Defines the mapping between a column/field/item in a data source and a column/field/item in the data destination.

MultipleTable

Provides a way to represent a table of prefixes that precedes a unit of measure to indicate a multiple of the unit. Implements the System.IEquatable<T>

ObjectDecoratorExtensions

Extension methods for the System.Object class hidden behind the IDecorator<T> interface.

ObjectFormattingOptions

Configuration options for FromObject() and methods of ObjectDecoratorExtensions.

ObjectPortrayalOptions

Configuration options for ObjectPortrayal(Object, Action<ObjectPortrayalOptions>).

Patterns

Provides a generic way to support different types of design patterns and practices with small utility methods.

PrefixMultiple

Represents the base class from which all implementations of unit prefix that can can be expressed as a either a multiple or a submultiple of the unit of measurement should derive. Implements the IPrefixMultiple

PrefixMultipleDecoratorExtensions

Extension methods for the IPrefixMultiple class hidden behind the IDecorator<T> interface.

PrefixUnit

Represents the base class from which all implementations of a unit of measurement should derive. Implements the IPrefixUnit

Range<T>

Represents a period of time between two T.

ReservedKeywordException

The exception that is thrown when the value of an argument is a reserved keyword.

StorageCapacity

Provides a way to represent a table of both binary and metric prefixes that precedes a unit of measure optimized for storage capacity measurement standards.

StorageCapacityOptions

Configuration options for StorageCapacity.

StringDecoratorExtensions

Extension methods for the System.String class hidden behind the IDecorator<T> interface.

StringFactory

Provides access to factory methods for creating and configuring encoded System.String instances.

SuccessfulValue

Provides a way to indicate a successful operation. This class cannot be inherited.

SuccessfulValue<TResult>

Provides a way to indicate a successful operation. This class cannot be inherited.

TaskActionFactory

Provides access to factory methods for creating TaskActionFactory<TTuple> instances that encapsulate a System.Threading.Tasks.Task based function delegate with a variable amount of generic arguments.

TaskActionFactory<TTuple>

Provides an easy way of invoking an System.Action delegate regardless of the amount of parameters provided.

TaskFuncFactory

Provides access to factory methods for creating TaskFuncFactory<TTuple, TResult> instances that encapsulate a System.Threading.Tasks.Task<TResult> based function delegate with a variable amount of generic arguments.

TaskFuncFactory<TTuple, TResult>

Provides an easy way of invoking an System.Func<TResult> function delegate regardless of the amount of parameters provided.

Template

Represents a Template with an empty value.

Template<T1>

Represents a Template with a single generic value.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>

Represents a Template with ten generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>

Represents a Template with eleven generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>

Represents a Template with twelve generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>

Represents a Template with thirteen generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>

Represents a Template with fourteen generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>

Represents a Template with fifteen generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>

Represents a Template with sixteen generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>

Represents a Template with seventeen generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>

Represents a Template with eighteen generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>

Represents a Template with nineteen generic values.

Template<T1, T2>

Represents a Template with two generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>

Represents a Template with twenty generic values.

Template<T1, T2, T3>

Represents a Template with three generic values.

Template<T1, T2, T3, T4>

Represents a Template with four generic values.

Template<T1, T2, T3, T4, T5>

Represents a Template with five generic values.

Template<T1, T2, T3, T4, T5, T6>

Represents a Template with six generic values.

Template<T1, T2, T3, T4, T5, T6, T7>

Represents a Template with seven generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8>

Represents a Template with eight generic values.

Template<T1, T2, T3, T4, T5, T6, T7, T8, T9>

Represents a Template with nine generic values.

TemplateFactory<TTuple>

Provides a base-class for delegate based factories.

TesterFuncFactory

Provides access to factory methods for creating TesterFuncFactory<TTuple, TResult, TSuccess> instances that encapsulate a tester function delegate with a variable amount of generic arguments.

TesterFuncFactory<TTuple, TResult, TSuccess>

Provides an easy way of invoking an TesterFunc<TResult, TSuccess> function delegate regardless of the amount of parameters provided.

TimeRange

Represents a period of time between two System.TimeSpan values.

Tweaker

Provides a way to change any instance of the same generic type.

TypeArgumentException

The exception that is thrown when one of the type arguments provided to a method is not valid.

TypeArgumentOutOfRangeException

The exception that is thrown when the value of an type argument is outside the allowable range of values as defined by the invoked method.

TypeDecoratorExtensions

Extension methods for the System.Type class hidden behind the IDecorator<T> interface.

UnitFormatOptions

Configuration options for BitUnit and ByteUnit. Implements the FormattingOptions

UnitPrefixFormatter

Defines the string formatting of objects having an implementation of either IPrefixUnit or IUnit. Implements the System.IFormatProvider Implements the System.ICustomFormatter

UnsuccessfulValue

Provides a way to indicate a faulted operation. This class cannot be inherited.

UnsuccessfulValue<TResult>

Provides a way to indicate a faulted operation. This class cannot be inherited.

Validator

Provides a generic way to validate different types of arguments passed to members.

Wrapper

Provides helper method for a Wrapper<T> object.

Wrapper<T>

Provides a way to wrap an object of type T.

Structs

DateSpan

Represents a System.DateTime interval between two System.DateTime values.

StringReplacePair

Defines a oldValue/newValue pair that can be set or retrieved for string replace operations.

Interfaces

IData

Provides a way to supply information about the class implementing this interface.

IDecorator<T>

Defines a decorator that exposes the inner wrapped type.

IHierarchy<T>

Provides a generic way to expose a node of a hierarchical structure, including the node object of type T.

IPrefixMultiple

Defines a unit prefix that can can be expressed as a either a multiple or a submultiple of the unit of measurement.

IPrefixUnit

Defines a unit of measurement that is used as a standard for measurement of the same kind of quantity. Any other quantity of that kind can be expressed as a multiple or fraction of the unit of measurement. Implements the IUnit

IUnit

Defines a unit of measurement that is used as a standard for measurement of the same kind of quantity. Implements the System.IEquatable<T>

IWrapper<T>

Provides a generic way to wrap an object instance of T inside another object.

Enums

AssignmentOperator

Defines the most common assignment operators for numeric operands.

CasingMethod

Specifies ways that a string must be converted in terms of casing.

DateTimeFormatPattern

Defines the default pattern to use when formatting date- and time values.

Endianness

Defines the order in which a sequence of bytes are represented.

GuidFormats

Specifies allowed GUID formats in parsing related methods.

HorizontalDirection

Specifies a set of values defining a horizontal direction.

NamingStyle

Specifies ways that a string must be represented in terms of naming style.

RelationalOperator

Defines the most common numerical relational operators.

RoundOffAccuracy

The accuracy of a rounding for a computed number.

SortOrder

Specifies the direction of a sort operation.

SystemSnapshots

Specifies the system states to capture runtime.

TimeUnit

Specifies the unit of time - typically used with a System.TimeSpan.

UnitPrefix

Specifies the two standards for binary multiples and decimal multiples.

UriScheme

Defines the schemes available for a System.Uri class.

VerticalDirection

Specifies a set of values defining a vertical direction.

Delegates

TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<TResult, TSuccess>

Encapsulates a method and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T, TResult, TSuccess>

Encapsulates a method that has one parameter and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, TResult, TSuccess>

Encapsulates a method that has two parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, TResult, TSuccess>

Encapsulates a method that has three parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, TResult, TSuccess>

Encapsulates a method that has four parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.

TesterFunc<T1, T2, T3, T4, T5, T6, T7, TResult, TSuccess>

Encapsulates a method that has five parameters and returns a value that indicates success of the type specified by the TSuccess parameter and returns a out result value of the type specified by the TResult parameter.