Namespace Utils.Objects
Classes
- Arg<T>
Provides argument validation helpers that throw ArgumentException instances.
- BitConverterEx
Provides methods for converting between decimal, Int128, UInt128 and their corresponding byte representations. This class supplements BitConverter with conversions not natively supported.
- BytesExtensions
Extension methods for creating and concatenating Bytes instances.
- CheckBase<T>
Provides a base implementation for value validation helpers that collect errors before throwing them.
- ConstrainedValue<T>
Base class for creating types that validate their value against runtime constraints.
- ConverterAggregator
Aggregates multiple IConverter instances and tries them in order.
- ConverterBase
An abstract base class that automatically adds public instance and static methods (with exactly one parameter) as conversion delegates.
- Enumerators
Provides helper methods that expand textual or numeric ranges into strongly typed sequences.
- FluentExtensions
Provides extension methods for fluent validation and processing of objects.
- NumberUtils
Provides helper methods for inspecting numeric types and comparing loosely typed values.
- ObjectUtils
Exposes null-aware control flow helpers and hash code utilities for arbitrary objects.
- Parsers
Utility class that provides methods to parse strings into various types using reflection and expressions.
- QuickEqualityComparer<TElement>
A helper class to encapsulate element equality and hash logic, optimizing for IEquatable<T>, IComparable<T>, and array types.
- ReturnValue<T>
Specialized ReturnValue<T, E> that stores errors as strings.
- ReturnValue<T, E>
Represents an operation result that can contain either a value or an error object.
- SimpleConverter
A simple converter implementation that uses a dictionary of delegates to convert values between types.
- SpanExtensions
Provides helper methods for trimming and slicing ReadOnlySpan<T> instances.
- Types
Provides cached Type instances for common .NET primitives and helper groups for numeric classifications.
- Validations
Provides helper methods for validating arguments and values with consistent exception messages.
- Variable<T>
Provides validation helpers for mutable values that throw InvalidOperationException when null.
Structs
- Bytes
Represents a read-only view over a sequence of bytes.
- FluentResult<T>
Represents the result of a fluent operation, allowing for chained conditional checks and transformations.
- OneOf<T1, T2>
Represents a discriminated union that can hold a value of either
T1orT2.
- OneOf<T1, T2, T3>
Represents a discriminated union that can hold a value of
T1,T2orT3.
- OneOf<T1, T2, T3, T4>
Represents a discriminated union that can hold a value of
T1,T2,T3orT4.
- OneOf<T1, T2, T3, T4, T5>
Represents a discriminated union that can hold a value of
T1,T2,T3,T4orT5.
- OneOf<T1, T2, T3, T4, T5, T6>
Represents a discriminated union that can hold a value of
T1,T2,T3,T4,T5orT6.
- OneOf<T1, T2, T3, T4, T5, T6, T7>
Represents a discriminated union that can hold a value of
T1,T2,T3,T4,T5,T6orT7.
- OneOf<T1, T2, T3, T4, T5, T6, T7, T8>
Represents a discriminated union that can hold a value of
T1,T2,T3,T4,T5,T6,T7orT8.
Interfaces
- IConverter
Defines a contract for converting objects between different types.