Table of Contents

Namespace Cuemon.Extensions

Assembly: Cuemon.Extensions.Core.dll

Write more expressive, fluent code by calling extension methods directly on .NET built-in types — myString.ToUri() replaces new Uri(myString), myException.Flatten() unwraps an AggregateException in one call. Use this namespace when you want to reduce ceremony around common .NET operations. The Cuemon.Extensions namespace extends String, DateTime, Object, Type, TimeSpan, Exception, and many more types. If you are new to this namespace, start with the String or Object extension groups for the most frequently needed conversions and transformations.

Availability: .NET 10, .NET 9 and .NET Standard 2.0

Complements: Cuemon namespace 📘

Extension Members

Type Ext Methods
Action ⬇️ Configure<TOptions>
Action ⬇️ CreateInstance<T>
Byte ⬇️ ToEncodedString, ToHexadecimalString, ToBinaryString, ToUrlEncodedBase64String, ToBase64String, TryDetectUnicodeEncoding
Char ⬇️ ToEnumerable, FromChars
Condition ⬇️ HasDifference
DateTime ⬇️ ToUnixEpochTime, ToUtcKind, ToLocalKind, ToDefaultKind, IsWithinRange, IsTimeOfDayNight, IsTimeOfDayMorning, IsTimeOfDayForenoon, IsTimeOfDayAfternoon, IsTimeOfDayEvening, Floor, Ceiling, Round
Double ⬇️ FromUnixEpochTime, ToTimeSpan, Factorial, RoundOff
Exception ⬇️ Flatten
IEnumerable ⬇️ GetHashCode32<T>, GetHashCode64<T>, ToDelimitedString<T>
IEnumerable ⬇️ IsSequenceOf<T>
Int* ⬇️ Min, Max, IsPrime, IsCountableSequence, IsEven, IsOdd
Mapping ⬇️ AddMapping
MethodDescriptor ⬇️ HasParameters
Object ⬇️ As<T>, As, IsNullable<T>
String ⬇️ Difference, ToByteArray, FromUrlEncodedBase64, ToGuid, FromBinaryDigits, FromBase64, ToCasing, ToUri, IsNullOrEmpty, IsNullOrWhiteSpace, IsEmailAddress, IsGuid, IsHex, IsNumeric, IsBase64, SplitDelimited, Count, RemoveAll, ReplaceAll, JsEscape, JsUnescape, ContainsAny, ContainsAll, EqualsAny, StartsWith, TrimAll, IsSequenceOf<T>, FromHexadecimal, ToHexadecimal, ToEnum<TEnum>, ToTimeSpan, SubstringBefore, Chunk, SuffixWith, SuffixWithForwardingSlash, PrefixWith
T ⬇️ UseWrapper<T>, As<T, TResult>, Adjust<T>, Alter<T>, IsNullable<T>
TimeSpan ⬇️ GetTotalNanoseconds, GetTotalMicroseconds, Floor, Ceiling, Round
Type ⬇️ ToFriendlyName, ToTypeCode, HasEqualityComparerImplementation, HasComparableImplementation, HasComparerImplementation, HasEnumerableImplementation, HasDictionaryImplementation, HasKeyValuePairImplementation, IsNullable<T>, IsNullable, HasAnonymousCharacteristics, IsComplex, IsSimple, GetDefaultValue, HasTypes, HasInterfaces, HasAttributes
Validator ⬇️ ContainsReservedKeyword, HasDifference, NoDifference

Classes

ActionExtensions

Extension methods for the Action delegates.

ActionFactory

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

AsyncDisposable

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

ByteExtensions

Extension methods for the byte struct.

CharExtensions

Extension methods for the char struct.

DateTimeExtensions

Extension methods for the DateTime struct.

DoubleExtensions

Extension methods for the double struct.

ExceptionExtensions

Extension methods for the Exception class.

FuncFactory

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

IntegerExtensions

Extension methods for the short, int and long structs.

MethodDescriptorExtensions

Extension methods for the MethodDescriptor class.

MutableTupleFactory

Provides access to factory methods for creating MutableTuple objects.

ObjectExtensions

Extension methods for the Object class.

StringExtensions

Extension methods for the string class.

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.

TimeSpanExtensions

Extension methods for the TimeSpan struct.

TypeExtensions

Extension methods for the Type class.

Wrapper

Provides helper method for a Wrapper<T> object.

Wrapper<T>

Provides a way to wrap an object of type T.

Interfaces

IWrapper<T>

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

Enums

RoundOffAccuracy

The accuracy of a rounding for a computed number.

VerticalDirection

Specifies a set of values defining a vertical direction.