DotNetXtensions 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DotNetXtensions --version 2.0.0
NuGet\Install-Package DotNetXtensions -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotNetXtensions" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetXtensions --version 2.0.0
#r "nuget: DotNetXtensions, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DotNetXtensions as a Cake Addin
#addin nuget:?package=DotNetXtensions&version=2.0.0

// Install DotNetXtensions as a Cake Tool
#tool nuget:?package=DotNetXtensions&version=2.0.0

DotNetXtensions version uped to 2.0.0 for breaking API changes (huge improvements) to XString and XDateTimes

XString breaking changes (2.0.0) ---

Documentation added to: XString.CharFromEnd, XString.CutEnd

Documentation reworked:

  • XString.End

API change!:

  1. CutEnd overload that took param string endString renamed as follows:

string CutEnd(this string s, string endString, bool checkDoesEndWith = true, bool ignoreCase = false)

renamed to:

string CutEndIfEndsWith(this string s, string endString, bool checkDoesEndWith = true, bool ignoreCase = false)

  1. CutEnd overload that took param char endChar renamed as follows:

string CutEnd(this string s, char endChar, bool ignoreCase = false)

renamed to:

string CutLastCharIfEndsWith(this string s, char endChar, bool ignoreCase = false)

XDateTimes breaking changes (2.0.0) ---

Numerous 'ParseDateTimeWithOffsetInfo' methods REMOVED, all now consolidated to 3 public members

  • Removed: ParseDateTimeLenientDefault TryParseDateTimeLenient TryParseDateTimeLenientAfterFail ParseDateTimeOffsetLenientDefault TryParseDateTimeOffsetLenient TryParseDateTimeOffsetLenientAfterFail

Many of these were not nearly well-thought out enough to enter the library, forgive me. Suffice to say, we now have 3 very clean and I think very useful functions:

  • Added or completely reworked and tested: bool DateTimeStringHasOffset(string dtStr, out TimeSpan offset) (was completely reworked) bool HasObsoleteUSTimeZone(ref string dateString, out TimeSpan offset) (largely reworked) ParseDateTimeWithOffsetInfo: (massively reworked, very powerful)

    in full: (bool success, bool hadOffset, DateTimeOffset result) ParseDateTimeWithOffsetInfo( string dateStr, TimeSpan? localOffset = null, TimeZoneInfo localTimeZone = null, bool treatNoOffsetAsLocalTime = true, bool handleObsoleteUSTimeZones = false)

  • TICKS_AT_EPOCH constant made public

  • Added XDateTimes_DateTimeParsing unit tests for 3 functions

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (12)

Showing the top 5 NuGet packages that depend on DotNetXtensions:

Package Downloads
DotNetXtensions.MimeTypes

MIME type helper for getting some common ("basic") MIME types, and the ability to know their associated file extensions, or to find a MIME type(s) from an extension, and so forth. This is NOT intended to be exhaustive (as having an exhaustive enum for mimetypes would not be encouraged), but to represent most of the commonly encountered file / MIME types one encounters on the web.

SimpleFeed

A rich and extremely tolerant .NET RSS and ATOM feed parser.

DotNetXtensions.Common

A number of helpful collections, such as a DropOffStack, a PriorityQueue, some binary-search types that allow chop-searching on virtual collections (not just on an array), and a grab-bag of additional types such as: A ConcurrentTasksRunner, a GuidTimeStamp, a Colour type, and so forth.

DotNetXtensions.Cryptography

Some cryptography and compression related helper extension methods and types. Extension methods that make it easy to get SHA hashes as well as AES-256 encryption on strings and byte-arrays. XZip which makes it easy to convert byte arrays and Streams to and from a ZipArchive (a zip file). RandomStringGenerator and RandomNumbers types, a PasswordStrengthEvaluator, and a CryptoRandom type (which inherits Random), which allows semi-crytographically secure random generation, based on RNGCryptoServiceProvider, but which uses a caching system that greatly expediates performance.

DotNetXtensions.XUnit

Provides minor set of xunit helpers

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.3.0 1,638 6/28/2022
4.2.0 7,590 3/9/2022
4.1.0 976 1/5/2022
4.0.1 1,221 5/12/2021
4.0.0 8,083 10/27/2020
3.9.0 1,150 5/30/2020
3.8.0 1,236 5/8/2020
3.7.0 1,104 12/20/2019
3.6.0 1,148 9/25/2019
3.5.0 1,895 8/1/2019
3.5.0-beta1 924 7/23/2019
3.4.0 1,331 7/11/2019
3.3.1 1,044 7/5/2019
3.3.0 1,610 7/1/2019
3.2.0 1,015 6/30/2019
3.1.0 2,608 6/18/2019
3.0.1 2,680 4/30/2019
2.0.0 1,309 9/18/2018
1.0.1 1,494 9/13/2018
1.0.0 1,437 9/12/2018

DotNetXtensions version uped to 2.0.0 for breaking API changes (huge improvements) to XString and XDateTimes

--- XString breaking changes (2.0.0) ---

Documentation added to:
XString.CharFromEnd,
XString.CutEnd

Documentation reworked:
- XString.End

API change!:

1) `CutEnd` overload that took param `string endString` renamed as follows:

`string CutEnd(this string s, string endString, bool checkDoesEndWith = true, bool ignoreCase = false)`

renamed to:

`string CutEndIfEndsWith(this string s, string endString, bool checkDoesEndWith = true, bool ignoreCase = false)`

2) `CutEnd` overload that took param `char endChar` renamed as follows:

`string CutEnd(this string s, char endChar, bool ignoreCase = false)`

renamed to:

`string CutLastCharIfEndsWith(this string s, char endChar, bool ignoreCase = false)`

--- XDateTimes breaking changes (2.0.0) ---

Numerous 'ParseDateTimeWithOffsetInfo' methods REMOVED, all now consolidated to 3 public members

- Removed:
`ParseDateTimeLenientDefault`
`TryParseDateTimeLenient`
`TryParseDateTimeLenientAfterFail`
`ParseDateTimeOffsetLenientDefault`
`TryParseDateTimeOffsetLenient`
`TryParseDateTimeOffsetLenientAfterFail`

Many of these were not nearly well-thought out enough to enter the library, forgive me. Suffice to say, we now have 3 very clean and I think very useful functions:

- Added or completely reworked and tested:
`bool DateTimeStringHasOffset(string dtStr, out TimeSpan offset)` (was completely reworked)
`bool HasObsoleteUSTimeZone(ref string dateString, out TimeSpan offset)` (largely reworked)
`ParseDateTimeWithOffsetInfo`: (massively reworked, very powerful)

 in full:
 `(bool success, bool hadOffset, DateTimeOffset result) ParseDateTimeWithOffsetInfo(
   string dateStr, TimeSpan? localOffset = null, TimeZoneInfo localTimeZone = null, bool treatNoOffsetAsLocalTime = true, bool handleObsoleteUSTimeZones = false)`

- TICKS_AT_EPOCH constant made public

- Added XDateTimes_DateTimeParsing unit tests for 3 functions