Most of those extensions should have been in BCL.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ReadMeGenerator
Tests
[Main] Build improvements. Mar 3, 2018
.editorconfig Initial version with support for .NET Standard. Jul 12, 2016
.gitignore Initial version with support for .NET Standard. Jul 12, 2016
AshMind.Extensions.sln * Migrated to new project format. Mar 3, 2018
AshMind.Extensions.sln.DotSettings Further restructuring. Jun 14, 2016
NuGet.Config Preparing for GitHub: focused this repository on AshMind.Extensions. Oct 5, 2013
README.md Initial version with support for .NET Standard. Jul 12, 2016
appveyor.yml Corrected build issue. Mar 3, 2018
build-all.bat Initial version with support for .NET Standard. Jul 12, 2016

README.md

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

Char

  1. IsControl
  2. IsDigit
  3. IsHighSurrogate
  4. IsLetter
  5. IsLetterOrDigit
  6. IsLower
  7. IsLowSurrogate
  8. IsNumber
  9. IsPunctuation
  10. IsSeparator
  11. IsSurrogate
  12. IsSymbol
  13. IsUpper
  14. IsWhiteSpace
  15. ToLower
  16. ToLowerInvariant
  17. ToUpper
  18. ToUpperInvariant

Collection

  1. AddRange
  2. RemoveAll
  3. RemoveWhere

DateTime

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

Delegate

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

Dictionary

  1. AsReadOnlyDictionary
  2. GetOrAdd
  3. GetValueOrDefault

Double

  1. IsInfinity
  2. IsNaN
  3. IsNegativeInfinity
  4. IsPositiveInfinity

Enumerable

  1. Any
  2. AsCollection
  3. AsList
  4. AsReadOnlyCollection
  5. AsReadOnlyList
  6. AsSet
  7. Concat
  8. EmptyIfNull
  9. Except
  10. ForEach
  11. GroupAdjacentBy
  12. HavingMax
  13. HavingMin
  14. ToSet

Formattable

  1. ToInvariantString
  2. ToString

Int32

  1. Times

List

  1. EnumerateRange
  2. InsertRange
  3. RemoveRange

Reflection

  1. CreateDelegate
  2. IsAssignableFrom
  3. IsAssignableTo
  4. IsGenericTypeDefinedAs
  5. IsSameAsOrSubclassOf
  6. IsSubclassOf

StringBuilder

  1. AppendJoin

String

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

Time

  1. Day
  2. Days
  3. Hour
  4. Hours
  5. Millisecond
  6. Milliseconds
  7. Minute
  8. Minutes
  9. Second
  10. Seconds

ime

  1. Day
  2. Days
  3. Hour
  4. Hours
  5. Millisecond
  6. Milliseconds
  7. Minute
  8. Minutes
  9. Second
  10. Seconds