DotNetExts 2.1.3

.NET Standard 2.0
Suggested Alternatives

pkar.DotNetExts 2.2.1

Additional Details

Newer version has added prefix to Nuget's ID.

dotnet add package DotNetExts --version 2.1.3
NuGet\Install-Package DotNetExts -Version 2.1.3
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="DotNetExts" Version="2.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetExts --version 2.1.3
#r "nuget: DotNetExts, 2.1.3"
#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 DotNetExts as a Cake Addin
#addin nuget:?package=DotNetExts&version=2.1.3

// Install DotNetExts as a Cake Tool
#tool nuget:?package=DotNetExts&version=2.1.3

This Nuget contains several extensions to .Net types, that I use in many of my programs. There are two branches:

  • v1, for .Net Standard 1.4 (working also in UWP apps for phones)
  • v2, for .Net Standard 2.0 (if you can afford dropping support for phones)

If some extension is added in v1.x.y, then it would be present also in v2.x.y (not in e.g. 2.0.0)

for String

String.MacStringToULong() As ULong
String.DePascal() As String
String.StartsWithOrdinal(value As String) As Boolean
String.EndsWithOrdinal(value As String) As Boolean
String.IndexOfOrdinal(value As String) As Integer
String.TrimBefore(startString As String) As String
String.TrimAfter(endString As String) As String
String.TrimBeforeLast(startString As String) As String
String.TrimAfterLast(endString As String) As String
String.SubstringBetweenInclusive(startString As String, endString As String) As String
String.SubstringBetweenExclusive(startString As String, endString As String) As String
String.RemoveBetween(sStart As String, sEnd As String) As String
String.Depolit() As String
String.ToValidPath(Optional useDepolit As Boolean = True, Optional invalidCharPlaceholder As String = "") As String

String.DropAccents // in v2.x.x
String.ToPOSIXportableFilename(optional replacement as string = "_") // in v2.x.x

for Integer

Integer.ToStringWithSpaces() As String
Integer.ToSIstring() As String
Integer.ToStringDHMS() As String

for Long

Long.FileLen2string() As String
Long.ToStringWithSpaces() As String
Long.ToSIstring() As String
Long.ToStringDHMS() As String
Long.ToSIstringWithPrefix(unitSymbol As String, Optional fullPrefix As Boolean = False, Optional binary As Boolean = False) As String

for Ulong

ULong.ToHexBytesString() As String

for dates

Date.ToJulianDay() As Integer
Date.ToModifiedJulianDay() As Double
TimeSpan.ToStringDHMS() As Integer
Date.TwoLetterWeekDayPL(Optional bezOgonkow As Boolean = False) As String // ['bezOgonkow' since x.1.3]
Date.ToExifString() As String

for GUIDs

These are for Bluetooth debugging

GUID.AsGattReservedDescriptorName As String // [since x.1.3]
GUID.AsGattReservedServiceName As String // [since x.1.3]
GUID.AsGattReservedCharacteristicName As String // [since x.1.3]

other

Function Between(Of T)(ByVal value As T, minVal As T, maxVal As T) As T
Byte().ToDebugString(iSpaces As Integer) As String
Stream.IsSameStreamContent(oStream2 As Stream) As Task(Of Boolean)
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DotNetExts:

Package Downloads
BTdump

Various debug helpers for Bluetooth

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.3 138 2/9/2023
2.0.0 156 1/31/2023
1.1.3 137 2/4/2023
1.1.2 124 2/4/2023
1.1.1 125 2/4/2023
1.1.0 177 1/18/2023
1.0.0 174 1/16/2023

TwoLetterWeekDayPL(depolit), correction in DePascal, Bluetooth GUIDs