Czlovek.Collections
1.0.10
See the version list below for details.
dotnet add package Czlovek.Collections --version 1.0.10
NuGet\Install-Package Czlovek.Collections -Version 1.0.10
<PackageReference Include="Czlovek.Collections" Version="1.0.10" />
<PackageVersion Include="Czlovek.Collections" Version="1.0.10" />
<PackageReference Include="Czlovek.Collections" />
paket add Czlovek.Collections --version 1.0.10
#r "nuget: Czlovek.Collections, 1.0.10"
#:package Czlovek.Collections@1.0.10
#addin nuget:?package=Czlovek.Collections&version=1.0.10
#tool nuget:?package=Czlovek.Collections&version=1.0.10
Description
This code defines a static class called Extensions
that provides extension methods for working with collections and strings.
Usage
To use these extension methods in your code, you need to import the Extensions
namespace. You can do this by adding the following line to the top of your C# file:
using Czlovek.Collections.Extensions;
IsNullOrEmpty<T>()
Determines whether a given collection is null or empty.
Syntax
public static bool IsNullOrEmpty<T>(this IEnumerable<T>? collection);
Parameters
collection
: The collection to check. Can be null.
Return Value
true
if the collection is null or empty; otherwise, false
.
Examples
var myCollection = new List<int> { 1, 2, 3 };
if (myCollection.IsNullOrEmpty())
{
Console.WriteLine("The collection is empty or null.");
}
else
{
Console.WriteLine("The collection has {0} elements.", myCollection.Count());
}
IsNotNullOrEmpty<T>()
Determines whether a given collection is not null and contains at least one element.
Syntax
public static bool IsNotNullOrEmpty<T>(this IEnumerable<T>? collection);
Parameters
collection
: The collection to check. Can be null.
Return Value
true
if the collection is not null and contains at least one element; otherwise, false
.
Examples
var myCollection = new List<int> { 1, 2, 3 };
if (myCollection.IsNotNullOrEmpty())
{
Console.WriteLine("The collection has {0} elements.", myCollection.Count());
}
else
{
Console.WriteLine("The collection is empty or null.");
}
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 (2)
Showing the top 2 NuGet packages that depend on Czlovek.Collections:
Package | Downloads |
---|---|
Czlovek.Encoders
Provides extension methods for working with Base64 encoding. |
|
Czlovek.MongoDb
Provides extension methods for working with Base64 encoding. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
2.1.0-beta.59 | 124 | 8/13/2025 |
2.1.0-beta.58 | 119 | 8/13/2025 |
2.1.0-beta.57 | 119 | 8/13/2025 |
2.1.0-beta.56 | 117 | 8/12/2025 |
2.1.0-beta.55 | 113 | 8/12/2025 |
2.1.0-beta.54 | 117 | 8/10/2025 |
2.1.0-beta.53 | 116 | 8/10/2025 |
2.1.0-beta.52 | 117 | 8/10/2025 |
2.1.0-beta.51 | 87 | 8/9/2025 |
2.1.0-beta.50 | 85 | 8/9/2025 |
2.1.0-beta.49 | 88 | 8/9/2025 |
2.1.0-beta.48 | 93 | 8/9/2025 |
2.1.0-beta.47 | 91 | 8/9/2025 |
2.1.0-beta.46 | 136 | 7/29/2025 |
2.1.0-beta.45 | 92 | 7/29/2025 |
2.1.0-beta.44 | 92 | 7/29/2025 |
2.1.0-beta.43 | 93 | 7/5/2025 |
2.1.0-beta.42 | 123 | 6/23/2025 |
2.1.0-beta.41 | 82 | 6/6/2025 |
2.1.0-beta.40 | 61 | 6/6/2025 |
2.1.0-beta.38 | 155 | 6/3/2025 |
2.1.0-beta.37 | 128 | 5/27/2025 |
2.1.0-beta.36 | 67 | 5/10/2025 |
2.1.0-beta.35 | 51 | 5/10/2025 |
2.1.0-beta.34 | 52 | 5/10/2025 |
2.1.0-beta.33 | 201 | 4/10/2025 |
2.1.0-beta.32 | 139 | 4/9/2025 |
2.1.0-beta.31 | 134 | 4/9/2025 |
2.1.0-beta.30 | 133 | 4/9/2025 |
2.1.0-beta.29 | 138 | 4/9/2025 |
2.1.0-beta.28 | 173 | 3/11/2025 |
2.1.0-beta.27 | 163 | 3/9/2025 |
2.1.0-beta.26 | 102 | 3/8/2025 |
2.1.0-beta.25 | 118 | 3/8/2025 |
2.1.0-beta.24 | 198 | 3/6/2025 |
2.1.0-beta.23 | 179 | 3/4/2025 |
2.1.0-beta.22 | 182 | 3/4/2025 |
2.1.0-beta.21 | 99 | 2/23/2025 |
2.1.0-beta.20 | 76 | 2/22/2025 |
2.1.0-beta.19 | 59 | 2/22/2025 |
2.1.0-beta.18 | 71 | 2/22/2025 |
2.1.0-beta.17 | 72 | 2/22/2025 |
2.1.0-beta.16 | 70 | 2/22/2025 |
2.1.0-beta.15 | 64 | 2/22/2025 |
2.1.0-beta.14 | 67 | 2/22/2025 |
2.1.0-beta.13 | 70 | 2/22/2025 |
2.1.0-beta.12 | 73 | 2/22/2025 |
2.1.0-beta.11 | 91 | 2/21/2025 |
2.1.0-beta.10 | 80 | 2/20/2025 |
2.1.0-beta.9 | 81 | 1/20/2025 |
2.1.0-beta.8 | 77 | 1/20/2025 |
2.1.0-beta.7 | 71 | 1/20/2025 |
2.1.0-beta.6 | 64 | 1/20/2025 |
2.1.0-beta.5 | 79 | 1/19/2025 |
2.1.0-beta.4 | 65 | 1/19/2025 |
2.1.0-beta.3 | 72 | 1/19/2025 |
2.1.0-beta.2 | 61 | 1/19/2025 |
2.1.0-beta.1 | 60 | 1/19/2025 |
2.0.0-beta.8 | 235 | 8/25/2024 |
2.0.0-beta.7 | 218 | 6/11/2024 |
2.0.0-beta.5 | 67 | 6/11/2024 |
2.0.0-beta.4 | 79 | 6/10/2024 |
2.0.0-beta.3 | 85 | 5/19/2024 |
2.0.0-beta.2 | 754 | 2/7/2024 |
2.0.0-beta.1 | 98 | 1/18/2024 |
1.0.11-beta.40 | 153 | 12/17/2023 |
1.0.11-beta.39 | 111 | 12/10/2023 |
1.0.11-beta.38 | 116 | 11/26/2023 |
1.0.11-beta.37 | 80 | 11/26/2023 |
1.0.11-beta.36 | 86 | 11/25/2023 |
1.0.11-beta.35 | 85 | 11/25/2023 |
1.0.11-beta.34 | 83 | 11/25/2023 |
1.0.11-beta.33 | 95 | 11/25/2023 |
1.0.11-beta.32 | 88 | 11/25/2023 |
1.0.11-beta.31 | 88 | 11/23/2023 |
1.0.11-beta.30 | 96 | 11/18/2023 |
1.0.11-beta.29 | 89 | 11/17/2023 |
1.0.11-beta.28 | 80 | 11/17/2023 |
1.0.11-beta.27 | 80 | 11/16/2023 |
1.0.11-beta.26 | 78 | 11/16/2023 |
1.0.11-beta.25 | 86 | 11/16/2023 |
1.0.11-beta.24 | 110 | 11/1/2023 |
1.0.11-beta.23 | 91 | 10/31/2023 |
1.0.11-beta.22 | 139 | 9/11/2023 |
1.0.11-beta.21 | 119 | 9/10/2023 |
1.0.11-beta.20 | 168 | 8/26/2023 |
1.0.11-beta.19 | 113 | 8/18/2023 |
1.0.11-beta.18 | 103 | 8/17/2023 |
1.0.11-beta.17 | 108 | 8/17/2023 |
1.0.11-beta.16 | 110 | 8/17/2023 |
1.0.11-beta.15 | 103 | 8/17/2023 |
1.0.11-beta.14 | 114 | 8/15/2023 |
1.0.11-beta.13 | 120 | 8/11/2023 |
1.0.11-beta.12 | 114 | 8/11/2023 |
1.0.11-beta.11 | 122 | 8/3/2023 |
1.0.11-beta.10 | 126 | 8/1/2023 |
1.0.11-beta.9 | 129 | 7/11/2023 |
1.0.11-beta.8 | 120 | 7/11/2023 |
1.0.11-beta.7 | 118 | 7/11/2023 |
1.0.11-beta.6 | 127 | 5/16/2023 |
1.0.11-beta.5 | 124 | 5/16/2023 |
1.0.11-beta.4 | 122 | 5/16/2023 |
1.0.11-beta.3 | 121 | 5/16/2023 |
1.0.11-beta.2 | 118 | 5/16/2023 |
1.0.11-beta.1 | 132 | 5/14/2023 |
1.0.10 | 427 | 4/11/2023 |
1.0.10-beta.2 | 134 | 4/11/2023 |
1.0.10-beta.1 | 140 | 3/22/2023 |
1.0.9 | 302 | 3/22/2023 |
1.0.8 | 305 | 3/19/2023 |
1.0.7 | 310 | 3/19/2023 |
1.0.6 | 321 | 3/16/2023 |
1.0.6-beta.1 | 128 | 3/16/2023 |
1.0.5 | 312 | 3/16/2023 |
1.0.4 | 332 | 3/12/2023 |