DotNetExts 2.1.3

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 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 (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.

TwoLetterWeekDayPL(depolit), correction in DePascal, Bluetooth GUIDs