The Cuemon namespace provides fundamental classes, utility classes and base classes that define commonly-used value and reference data types, events and event handlers, interfaces, attributes, and processing exceptions.

Cuemon Assembly documentation

Extension Methods

Requires NuGet package Cuemon.Extensions and .NET Framework 3.5

Name Type # Documentation
IsDebugBuild() Assembly - AssemblyUtility.IsDebugBuild
GetCacheValidator() Assembly - AssemblyUtility.GetCacheValidator
GetFileVersion() Assembly - AssemblyUtility.GetFileVersion
GetProductVersion() Assembly - AssemblyUtility.GetProductVersion
GetHashCode32() IEnumerable<Byte> - ByteUtility.GetHashCode
RemovePreamble() Byte[] - ByteUtility.RemovePreamble
RemoveTrailingZeros() Byte[] - ByteUtility.RemoveTrailingZeros
GetCacheValidator(...) DateTime 23 CacheValidator
FirstMatchOrDefault<TKey, TValue>(...) IDictionary<TKey,TValue> 2 DictionaryUtility.FirstMatchOrDefault
Any() IEnumerable - EnumerableUtility.Any
Count() IEnumerable - EnumerableUtility.Count
FindAll<TSource>() IEnumerable<TSource> 10 EnumerableUtility.FindAll
HasIndex<TSource>() IList<TSource> - ListUtility.HasIndex
Next<TSource>() IList<TSource> - ListUtility.Next
Previous<TSource>() IList<TSource> - ListUtility.Previous
FromHexString(...) String 3 ConvertUtility.FromHexString
ToByteArray(...) IEnumerable<T>, Stream, String, T 7 ConvertUtility.ToByteArray
ToCharArray(...) Stream, String 6 ConvertUtility.ToCharArray
ToDelimitedString<TSource>(...) IEnumerable<TSource> 15 ConvertUtility.ToDelimitedString
ToDictionary<TKey,TValue>(...) IEnumerable<KeyValuePair<TKey, TValue> 2 DictionaryUtility.ToDictionary
ToEnumerable() String - ConvertUtility.ToEnumerable
Yield<TSource>() TSource - EnumerableUtility.Yield
ToGuid() String - ConvertUtility.ToGuid
ToHexString(...) Byte[], String 4 ConvertUtility.ToHexString
ToKeyValuePairs<TKey,TValue>() IDictionary<TKey,TValue> - ConvertUtility.ToKeyValuePairs
ToStream(...) Byte[], String 4 ConvertUtility.ToStream
ToString(...) Byte[], Exception, Stream, TSource 14 ConvertUtility.ToString
ToTimeSpan(...) Double, String 2 ConvertUtility.ToTimeSpan
ToWebHeaderCollection() NameValueCollection - ConvertUtility.ToWebHeaderCollection
ParseWith<TSource,TResult>(...) TSource 10 ConvertUtility.ParseWith
ParseSequenceWith<TSource,TResult>(...) IEnumerable<TSource> 10 ConvertUtility.ParseSequenceWith
GetHighest() IEnumerable<DateTime>() - DateTimeUtility.GetHighestValue
GetLowest() IEnumerable<DateTime>() - DateTimeUtility.GetLowestValue
Floor(...) DateTime 2 DateTimeUtility.Floor
Ceiling(...) DateTime 2 DateTimeUtility.Ceiling
Round(...) DateTime 2 DateTimeUtility.Round
Wrap<TResult>() TResult - DelegateUtility.Wrap
DynamicWrap<TResult>() TResult - DelegateUtility.DynamicWrap
Flatten(...) Exception 2 ExceptionUtility.Flatten
ParseException<TResult>() Exception - ExceptionUtility.Parse
RefineException(...) Exception 2 ExceptionUtility.Refine
Compress(...) Stream 2 CompressionUtility.CompressStream
Decompress(...) Stream 2 CompressionUtility.DecompressStream
Copy(...) Stream 4 StreamUtility.CopyStream
RemovePreamble(...) Stream 2 StreamUtility.RemovePreample
Http(...) Uri, HttpWebRequest 5 NetHttpUtility.Http
HttpDelete(...) Uri 2 NetHttpUtility.HttpDelete
HttpGet(...) Uri 2 NetHttpUtility.HttpGet
HttpHead(...) Uri 2 NetHttpUtility.HttpHead
HttpOptions(...) Uri 2 NetHttpUtility.HttpOptions
HttpPost(...) Uri 2 NetHttpUtility.HttpPost
HttpPut(...) Uri 2 NetHttpUtility.HttpPut
HttpTrace(...) Uri 2 NetHttpUtility.HttpTrace
BytesToGigabytes() Int64 - NumberUtility.BytesToGigabytes
BytesToKilobytes() Int64 - NumberUtility.BytesToKilobytes
BytesToMegabytes() Int64 - NumberUtility.BytesToMegabytes
BytesToTerabytes() Int64 - NumberUtility.BytesToTerabytes
Factorial() Double - NumberUtility.Factorial
IsEven() Int32 - NumberUtility.IsEven
IsNumeric(...) String 3 NumberUtility.IsNumeric
ToEnum<TEnum>(...) String 2 EnumUtility.Parse
IsOdd() Int32 - NumberUtility.IsOdd
IsPrime() Int32 - NumberUtility.IsPrime
RoundOff() Double - NumberUtility.RoundOff
GetAssemblyTypes(...) Assembly 3 ReflectionUtility.GetAssemblyTypes
GetAttribute<TAttribute>(...) MemberInfo 2 ReflectionUtility.GetAttribute
GetAttributes<TAttribute>(...) MemberInfo 2 ReflectionUtility.GetAttributes
GetEmbeddedResource(...) Type 2 ReflectionUtility.GetEmbeddedResource
GetEmbeddedResources() Type - ReflectionUtility.GetEmbeddedResources
IsAutoProperty() Type - ReflectionUtility.IsAutoProperty
GetField(...) Type 2 ReflectionUtility.GetField
GetFields(...) Type 2 ReflectionUtility.GetFields
GetMethod(...) Type 3 ReflectionUtility.GetMethod
GetMethods(...) Type 2 ReflectionUtility.GetMethods
GetObjectHierarchy(...) Object 6 ReflectionUtility.GetObjectHierarchy
GetProperties(...) Type 2 ReflectionUtility.GetProperties
GetProperty(...) Type 4 ReflectionUtility.GetProperty
GetPropertyAttributes<TDecoration>(...) Type 2 ReflectionUtility.GetPropertyAttributeDecorations
HasCircularReference<T>(...) T 3 ReflectionUtility.HasCircularReference
ParseMethodParameters(...) Type 2 ReflectionUtility.ParseMethodParameters
ComputeHash(...) Byte[], String, String[], Stream 11 HashUtility.ComputeHash
ContainsAny(...) String 8 StringUtility.Contains
Count() String - StringUtility.Count
Escape() String - StringUtility.Escape
GetHashCode32() String - StringUtility.GetHashCode
IsNullOrEmpty() IEnumerable<String> - StringUtility.IsNullOrEmpty
ParseFormat(...) String 2 StringUtility.ParseStringFormat
Remove(...) String, String[] 5 StringUtility.Remove
ReplaceAll(...) String 3 StringUtility.Replace
Shuffle() IEnumerable<String> - StringUtility.Shuffle
StartsWith(...) String 4 StringUtility.StartsWith
Unescape() String - StringUtility.Unescape
GetHashCode32<T>() IEnumerable<T> - StructUtility.GetHashCode32
GetHashCode64<T>() IEnumerable<T> - StructUtility.GetHashCode64
TryParseEncoding(...) Byte[], Stream 2 EncodingUtility.TryParse
GetAncestorsAndDescendantsAndSelf(...) Type 2 TypeUtility.GetAncestorAndDescendantsOrSelfTypes
GetAncestorsAndSelf(...) Type 2 TypeUtility.GetAncestorOrSelfTypes
GetDescendantsAndSelf(...) Type 2 TypeUtility.GetDescendantOrSelfTypes
HasAttributes(...) MemberInfo, Type 4 TypeUtility.ContainsAttributeType
HasInterfaces(...) Type 2 TypeUtility.ContainsInterface
HasTypes() Type - TypeUtility.ContainsType
Is<T>() Object - TypeUtility.Is
IsComparable() Type - TypeUtility.IsComparable
IsComparer() Type - TypeUtility.IsComparer
IsDictionary() Type - TypeUtility.IsDictionary
IsEnumerable() Type - TypeUtility.IsEnumerable
IsEqualityComparer() Type - TypeUtility.IsEqualityComparer
IsKeyValuePair() Type - TypeUtility.IsKeyValuePair
IsGuid(...) Type 2 Condition.IsGuid
IsHex(...) Type 2 Condition.IsHex
IsEmailAddress() Type - Condition.IsEmailAddress
IsNot<T>() Object - TypeUtility.IsNot
IsNullable(...) T, T?, Type 3 TypeUtility.IsNullable
SanitizeName(...) Type 3 TypeUtility.SanitizeName
As<TResult>(...) Object 3 ConvertUtility.As
ToTitleCase(...) String 2 TextInfo.ToTitleCase
UrlDecode(...) String 2 HttpUtility.UrlDecode
UrlEncode(...) String 2 HttpUtility.UrlEncode
ToBase64(...) Byte[] 2 Convert.ToBase64String
FormatWith() String - String.Format
FromBase64() String - Convert.FromBase64String
IsNullOrEmpty() String - String.IsNullOrEmpty
IsBase64() String - StringUtility.IsBase64
ContainsAll(...) String 2 Calls ContainsAny with and AND operaion.
TrimAll(...) String 2 StringUtility.TrimAll
GetDefaultValue() Type - TypeUtility.GetDefaultValue
Join(...) String[] 2 String.Join
FromByteArray<T>() Byte[] - ConvertUtility.FromByteArray
Concat<TSource>(...) TSource[] 2 ArrayUtility.Concat
ToPagedCollection<T>(...) IEnumerable<T> 4 PagedCollection<T>
ToPartitionCollection<T>(...) IEnumerable<T> 2 PartitionCollection<T>
Contains<TSource>() IEnumerable<TSource> - EnumerableUtility.Containslt;TSource>
RandomOrDefault<TSource>(...) RandomOrDefault<TSource> 2 EnumerableUtility.RandomOrDefault;TSource>
IsSequenceOf<T>(...) IEnumerable<string> 5 StringUtility.IsSequenceOf;T>
IsCountableSequence(...) IEnumerable<Int32>, IEnumerable<Int64> 2 NumberUtility.IsCountableSequence
AsCode() Type - Type.GetTypeCode
IsComplex() Type - TypeUtility.IsComplex
IsCountableSequence() String - StringUtility.IsCountableSequence
Split(...) String 4 StringUtility.Split
EqualsAny(...) String 2 StringUtility.Equals