pkar.DotNetExts 1.2.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package pkar.DotNetExts --version 1.2.1
NuGet\Install-Package pkar.DotNetExts -Version 1.2.1
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="pkar.DotNetExts" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add pkar.DotNetExts --version 1.2.1
#r "nuget: pkar.DotNetExts, 1.2.1"
#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 pkar.DotNetExts as a Cake Addin
#addin nuget:?package=pkar.DotNetExts&version=1.2.1

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

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.NotContains(value As String) As Boolean

String.DropAccents // in v2.x.x
String.ToPOSIXportableFilename(optional replacement as string = "_") // in v2.x.x
String.TransliterateCyrilicToLatin(ByVal basestring As String) As String	// since vx.2.1
String.TransliterateGreekToLatin(ByVal basestring As String) As String	// since vx.2.1
String.ToPOSIXportableFilename(useTransliteration As Boolean, optional replacement as string = "_") // since v2.2.1

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 netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.4 is compatible.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  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 tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on pkar.DotNetExts:

Package Downloads
pkar.winui3.Triggers The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

some helpers for background Triggers

pkar.UWP.Triggers The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

some helpers for background Triggers

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.5 139 1/15/2024
2.2.4 185 11/7/2023
2.2.3 93 9/30/2023
2.2.2 146 8/7/2023
2.2.1 152 3/22/2023
1.2.5 89 1/15/2024
1.2.4 100 11/7/2023
1.2.3 114 9/30/2023
1.2.2 146 8/7/2023
1.2.1 130 3/22/2023

string.transliterating, string.NotContains