MarkDev.Utils.CSharpHelpers 1.0.0

.NET 5.0 .NET Core 3.1 .NET Standard 2.0 .NET Framework 4.5
There is a newer version of this package available.
See the version list below for details.
Install-Package MarkDev.Utils.CSharpHelpers -Version 1.0.0
dotnet add package MarkDev.Utils.CSharpHelpers --version 1.0.0
<PackageReference Include="MarkDev.Utils.CSharpHelpers" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MarkDev.Utils.CSharpHelpers --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MarkDev.Utils.CSharpHelpers, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MarkDev.Utils.CSharpHelpers as a Cake Addin
#addin nuget:?package=MarkDev.Utils.CSharpHelpers&version=1.0.0

// Install MarkDev.Utils.CSharpHelpers as a Cake Tool
#tool nuget:?package=MarkDev.Utils.CSharpHelpers&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

C-Sharp Helpers

This package comprises of collections of C# helper methods that are used every day by c-sharp developers. You don't have to write these helper functions yourself. There are currenlty eleven helper methods - still growing.

Helpers

Helpers.Right(int length) - Get substring of specified number of characters on the right.

Usage

var longString = "abcdefghijklmnopqrstuvwxyz";

var lastFourXters = longString.Right(4);

Helpers.Left(int length) - Get substring of specified number of characters on the left.

Usage

var longString = "abcdefghijklmnopqrstuvwxyz";

var lastFourXters = longString.Left(4);

Helpers.ToBase64() - Convert a given value to base64 string.

Usage

var name = "MarkAdesina";

var base64 = name.ToBase64();

Helpers.FromBase64() - Convert baase64 string to normal string.

Usage

var name = "somebase64string";

var rawString = name.FromBase64();

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
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
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.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.5.1

    • No dependencies.
  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.6

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 148 6/16/2021
1.0.0 139 6/10/2021