Skip to content

ashmind/ashmind-extensions

Repository files navigation

Build status

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

  1. IndexOf
  2. LastIndexOf
  3. Reverse
  4. Sort

Assembly

  1. GetAssemblyFile
  2. GetAssemblyFileFromCodeBase

Char

Collection

  1. AddRange
  2. RemoveAll
  3. RemoveWhere

CustomAttributeProvider

  1. GetCustomAttribute
  2. GetCustomAttributes
  3. IsDefined

DateTime

  1. TruncateToHours
  2. TruncateToMilliseconds
  3. TruncateToMinutes
  4. TruncateToSeconds

Delegate

  1. AsComparison
  2. AsFunc
  3. AsPredicate
  4. ToComparer

Dictionary

  1. AsReadOnlyDictionary
  2. GetOrAdd
  3. GetValueOrDefault

Double

Enumerable

  1. Any
  2. AsCollection
  3. AsList
  4. AsReadOnlyCollection
  5. AsReadOnlyList
  6. Concat
  7. EmptyIfNull
  8. Except
  9. GroupAdjacentBy
  10. HavingMax
  11. HavingMin

Formattable

  1. ToInvariantString
  2. ToString

List

  1. EnumerateRange
  2. InsertRange
  3. RemoveRange

MethodInfo

  1. CreateDelegate

StringBuilder

String

  1. Contains
  2. NullIfEmpty
  3. RemoveEnd
  4. RemoveStart
  5. Split
  6. SubstringAfter
  7. SubstringAfterLast
  8. SubstringBefore
  9. SubstringBeforeLast
  10. TruncateEnd

Type

  1. HasInterface
  2. IsAssignableFrom
  3. IsAssignableTo
  4. IsGenericTypeDefinedAs
  5. IsSameAsOrSubclassOf

About

Most of those extensions should have been in BCL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published