ClassExtensions 0.0.4
dotnet add package ClassExtensions --version 0.0.4
NuGet\Install-Package ClassExtensions -Version 0.0.4
<PackageReference Include="ClassExtensions" Version="0.0.4" />
<PackageVersion Include="ClassExtensions" Version="0.0.4" />
<PackageReference Include="ClassExtensions" />
paket add ClassExtensions --version 0.0.4
#r "nuget: ClassExtensions, 0.0.4"
#:package ClassExtensions@0.0.4
#addin nuget:?package=ClassExtensions&version=0.0.4
#tool nuget:?package=ClassExtensions&version=0.0.4
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 | Versions 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. |
-
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.