ClassExtensions 0.0.4

dotnet add package ClassExtensions --version 0.0.4
                    
NuGet\Install-Package ClassExtensions -Version 0.0.4
                    
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="ClassExtensions" Version="0.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ClassExtensions" Version="0.0.4" />
                    
Directory.Packages.props
<PackageReference Include="ClassExtensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ClassExtensions --version 0.0.4
                    
#r "nuget: ClassExtensions, 0.0.4"
                    
#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.
#:package ClassExtensions@0.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ClassExtensions&version=0.0.4
                    
Install as a Cake Addin
#tool nuget:?package=ClassExtensions&version=0.0.4
                    
Install as a Cake Tool

.NET Core Desktop CodeQL Codacy Security Scan SecurityCodeScan

Extensions for C# classes

bool IsNull(this object)

Returns true, if the passed object is null, otherwise false

bool IsNotNull(this object)

Returns true, if the passed object is not null, otherwise false

void ForAll(this IEnumerable<T> source, Action<T> action)

Executes action for each element. No exception, if enumeration or action is null

void Times(this int count, Action<int> action)

Executes action n times. No exception, if action is null

void EqualJsonCheck(this object, object toCompare)

Compares two objects by serializing them to json string and throws exception if not

bool IsEqualJson(this object, object toCompare)

Compares two objects by serializing them to json string and returns bool

string ExpEnv(this string)

Shortcut for Environment.ExpandEnvironmentVariables

bool IsEmpty(this IEnumerable value)

Checks if a IEnumerable is empty

bool IsNotEmpty(this IEnumerable value)

Checks if a IEnumerable is not empty

bool IsNullOrEmpty(this IEnumerable value)

Checks if a IEnumerable is null or empty

bool IsNotNullOrEmpty(this IEnumerable value)

Checks if a IEnumerable is not null or empty

string UseFormat(this string text, params string[] @params)

Uses string.Format to replace placeholder values

T Pop<T>(this IList<T> source)

Returns the last element of the list and removes it from the list

T Shift<T>(this IList<T> source)

Returns the first element of the list and removes it from the list

void Unshift<T>(this IList<T> source, T toAdd)

Adds toAdd at the first position of source

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ClassExtensions:

Package Downloads
CsUnitTestHelper

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.4 843 12/28/2022
0.0.3 353 12/27/2022
0.0.2 381 12/13/2022
0.0.1 480 12/2/2022