ashmind-extensions
ashmind-extensions copied to clipboard
Most of those extensions should have been in BCL.
A set of very conservative extension methods — most of those closely follow common naming and implementation patterns in the .NET framework. You can get it from NuGet as AshMind.Extensions.
Below is an auto-generated list of the methods provided:
Array
- IndexOf
- LastIndexOf
- Reverse
- Sort
Assembly
- GetAssemblyFile
- GetAssemblyFileFromCodeBase
Char
Collection
- AddRange
- RemoveAll
- RemoveWhere
CustomAttributeProvider
- GetCustomAttribute
- GetCustomAttributes
- IsDefined
DateTime
- TruncateToHours
- TruncateToMilliseconds
- TruncateToMinutes
- TruncateToSeconds
Delegate
- AsComparison
- AsFunc
- AsPredicate
- ToComparer
Dictionary
- AsReadOnlyDictionary
- GetOrAdd
- GetValueOrDefault
Double
Enumerable
- Any
- AsCollection
- AsList
- AsReadOnlyCollection
- AsReadOnlyList
- Concat
- EmptyIfNull
- Except
- GroupAdjacentBy
- HavingMax
- HavingMin
Formattable
- ToInvariantString
- ToString
List
- EnumerateRange
- InsertRange
- RemoveRange
MethodInfo
- CreateDelegate
StringBuilder
String
- Contains
- NullIfEmpty
- RemoveEnd
- RemoveStart
- Split
- SubstringAfter
- SubstringAfterLast
- SubstringBefore
- SubstringBeforeLast
- TruncateEnd
Type
- HasInterface
- IsAssignableFrom
- IsAssignableTo
- IsGenericTypeDefinedAs
- IsSameAsOrSubclassOf