CommonNetFuncs.Core
3.3.12
See the version list below for details.
dotnet add package CommonNetFuncs.Core --version 3.3.12
NuGet\Install-Package CommonNetFuncs.Core -Version 3.3.12
<PackageReference Include="CommonNetFuncs.Core" Version="3.3.12" />
<PackageVersion Include="CommonNetFuncs.Core" Version="3.3.12" />
<PackageReference Include="CommonNetFuncs.Core" />
paket add CommonNetFuncs.Core --version 3.3.12
#r "nuget: CommonNetFuncs.Core, 3.3.12"
#:package CommonNetFuncs.Core@3.3.12
#addin nuget:?package=CommonNetFuncs.Core&version=3.3.12
#tool nuget:?package=CommonNetFuncs.Core&version=3.3.12
CommonNetFuncs.Core
This lightweight project contains helper methods for several common functions required by applications.
Contents
- Async
- Collections
- Copy
- DateOnlyHelpers
- DateTimeHelpers
- DimensionScale
- ExceptionLocation
- FileHelpers
- Inspect
- MathHelpers
- Random
- RunBatches
- Streams
- Strings
- TypeChecks
- UnitConversion
Async
Helper methods for dealing with asynchronous processes. <details> <summary><h3>Usage Examples</h3></summary>
ObjectUpdate
Asynchronously update properties of a class using ObjectUpdate
//Fill the Name and Address property using async tasks
Person person = new();
//AsyncIntString helper class is used for int and string types since they can't otherwise be gotten asynchronously like this
AsyncIntString personPhotoLocation = new();
person.Id = 1;
List<Task> tasks =
[
person.ObjectUpdate(nameof(Person.Name), GetPersonNameByIdAsync(person.Id)), //Fills person.Name with results of GetPersonNameByIdAsync(person.Id)
person.ObjectUpdate(nameof(Person.Address), GetPersonAddressByIdAsync(person.Id)), //Fills person.Address with results of GetPersonAddressByIdAsync(person.Id)
personPhotoLocation.ObjectUpdate(nameof(AsyncIntString.AsyncString), GetPersonPhotoLocationById(person.Id)) //Fills personPhotoLocation.AsyncString with the results of GetPersonPhotoLocationById(person.Id)
]
await Task.WhenAll(tasks);
ObjectFill
Object fill can be used to asynchronously fill classes and lists with.
Person person = new();
ConcurrentBag<Person> people = [];
List<Task> tasks =
[
person.ObjectUpdate(GetPersonById(1)), //person is filled by results of GetPersonById(1) which returns type Person
//people is filled by the results of all three calls to GetPeopleByState additively (all results will be present in people)
people.ObjectUpdate(GetPeopleByState("Ohio")),
people.ObjectUpdate(GetPeopleByState("California")),
people.ObjectUpdate(GetPeopleByState("Texas"))
]
await Task.WhenAll(tasks);
</details>
Collections
Collections Usage Examples
Helper methods that work with collections such as IEnumerable, List, IDictionary, ConcurrentBag, and DataTable
<details> <summary><h3>Usage Examples</h3></summary>
AnyFast
Used to address issue CA1860 where it suggests using .Count for performance in an easier to type extension method
bool x = collection?.Any() == true;
//Or
collection?.Count > 0;
//Becomes
bool x = collection.AnyFast();
AddDictionaryItem & AddDictionaryItems
Used to directly TryAdd a KeyValuePair object(s) to a dictionary
KeyValuePair<string, string> JsonContentHeader = new("Content-Type", "application/json");
//Single addition
ConcurrentDictionary<string, string>? httpHeaders = [];
httpHeaders.AddDictionaryItem(JsonContentHeader);
//Add multiples
List<KeyValuePair<string, string>> keyValuePairs = [new("Accept-Encoding", "br"), new("Accept-Encoding", "gzip")];
httpHeaders.AddDictionaryItems(keyValuePairs);
AddRange & AddRangeParallel
[Description]
SetValue & SetValueParallel
[Description]
SelectNonEmpty
[Description]
SelectNonNull
[Description]
SingleToList
[Description]
GetObjectByPartial
[Description]
ToList
[Description]
ToListParallel
[Description]
ToDataTable
[Description]
ToDataTableReflection
[Description]
CombineExpressions
[Description]
StringAggProps
[Description]
IndexOf
[Description]
</details>
Copy
Copy Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
DateOnlyHelpers
DateHelpers Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
DateTimeHelpers
DateHelpers Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
DimensionScale
DimensionScale Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
ExceptionLocation
ExceptionLocation Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
FileHelpers
FileHelpers Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
Inspect
Inspect Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
MathHelpers
MathHelpers Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
Random
Random Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
RunBatches
RunBatches Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
Streams
Streams Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
Strings
Strings Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
TypeChecks
TypeChecks Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
</details>
UnitConversion
UnitConversion Usage Examples
[Description here]
<details> <summary><h3>Usage Examples</h3></summary>
[MethodNameHere]
//Code here
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- No dependencies.
NuGet packages (15)
Showing the top 5 NuGet packages that depend on CommonNetFuncs.Core:
| Package | Downloads |
|---|---|
|
CommonNetFuncs.Web.Aws.S3
Helper methods that deal with AWS S3 interactions |
|
|
CommonNetFuncs.EFCore
Helper methods that deal with EFCore, including providing basic actions against a DB Context and handling navigation properties. |
|
|
CommonNetFuncs.Web.Requests
Helper methods that deal with creating, sending, and handling the responses from REST API calls |
|
|
CommonNetFuncs.Web.Api
Generic API endpoints for use in an ASP.NET API |
|
|
CommonNetFuncs.Web.Common
Helper methods that deal with general web applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 4.0.9 | 173 | 1/12/2026 | |
| 4.0.6 | 281 | 1/2/2026 | |
| 4.0.3 | 363 | 12/22/2025 | |
| 4.0.2 | 1,074 | 12/2/2025 | |
| 4.0.1 | 322 | 11/27/2025 | |
| 4.0.0 | 375 | 11/23/2025 | |
| 3.8.28 | 375 | 1/5/2026 | |
| 3.8.20 | 919 | 12/1/2025 | |
| 3.8.19 | 489 | 11/21/2025 | |
| 3.8.18 | 671 | 11/20/2025 | |
| 3.8.16 | 675 | 11/17/2025 | |
| 3.8.13 | 563 | 11/10/2025 | |
| 3.8.12 | 209 | 11/6/2025 | |
| 3.8.11 | 225 | 11/5/2025 | |
| 3.8.4 | 645 | 10/9/2025 | |
| 3.7.18 | 1,157 | 9/15/2025 | |
| 3.7.17 | 418 | 9/11/2025 | |
| 3.7.13 | 476 | 9/8/2025 | |
| 3.7.0 | 816 | 8/18/2025 | |
| 3.6.27 | 379 | 8/18/2025 | |
| 3.6.26 | 398 | 8/14/2025 | |
| 3.6.25 | 420 | 8/13/2025 | |
| 3.6.24 | 397 | 8/12/2025 | |
| 3.6.19 | 479 | 7/28/2025 | |
| 3.6.18 | 523 | 7/25/2025 | |
| 3.6.6 | 877 | 7/21/2025 | |
| 3.6.1 | 447 | 7/14/2025 | |
| 3.6.0 | 335 | 7/11/2025 | |
| 3.5.3 | 359 | 7/10/2025 | |
| 3.5.2 | 213 | 7/9/2025 | |
| 3.5.1 | 186 | 7/8/2025 | |
| 3.5.0 | 412 | 7/7/2025 | |
| 3.4.30 | 185 | 7/7/2025 | |
| 3.4.23 | 399 | 6/26/2025 | |
| 3.4.21 | 302 | 6/26/2025 | |
| 3.4.20 | 363 | 6/25/2025 | |
| 3.4.18 | 375 | 6/23/2025 | |
| 3.4.17 | 219 | 6/19/2025 | |
| 3.4.14 | 332 | 6/17/2025 | |
| 3.4.13 | 315 | 6/13/2025 | |
| 3.4.12 | 347 | 6/12/2025 | |
| 3.4.11 | 348 | 6/12/2025 | |
| 3.4.10 | 339 | 6/11/2025 | |
| 3.4.9 | 500 | 6/11/2025 | |
| 3.4.8 | 515 | 6/11/2025 | |
| 3.4.5 | 362 | 6/9/2025 | |
| 3.4.2 | 486 | 6/2/2025 | |
| 3.4.1 | 403 | 5/30/2025 | |
| 3.4.0 | 469 | 5/30/2025 | |
| 3.3.16 | 217 | 5/28/2025 | |
| 3.3.12 | 317 | 5/19/2025 | |
| 3.3.11 | 448 | 5/18/2025 | |
| 3.3.10 | 544 | 5/13/2025 | |
| 3.3.8 | 296 | 5/13/2025 | |
| 3.3.7 | 291 | 5/12/2025 | |
| 3.3.3 | 231 | 4/30/2025 | |
| 3.3.0 | 519 | 4/29/2025 | |
| 3.2.36 | 286 | 4/15/2025 | |
| 3.2.35 | 270 | 4/14/2025 | |
| 3.2.33 | 292 | 4/14/2025 | |
| 3.2.32 | 252 | 4/14/2025 | |
| 3.2.31 | 180 | 4/11/2025 | |
| 3.2.30 | 174 | 4/11/2025 | |
| 3.2.29 | 163 | 4/11/2025 | |
| 3.2.25 | 396 | 4/7/2025 | |
| 3.2.24 | 197 | 4/1/2025 | |
| 3.2.22 | 460 | 3/12/2025 | |
| 3.2.19 | 292 | 2/28/2025 | |
| 3.2.18 | 167 | 2/28/2025 | |
| 3.2.17 | 241 | 2/26/2025 | |
| 3.2.14 | 332 | 2/20/2025 | |
| 3.2.13 | 546 | 2/13/2025 | |
| 3.2.9 | 407 | 2/4/2025 | |
| 3.2.8 | 224 | 1/31/2025 | |
| 3.2.6 | 280 | 1/28/2025 | |
| 3.2.5 | 195 | 1/27/2025 | |
| 3.2.3 | 288 | 1/17/2025 | |
| 3.2.1 | 232 | 1/7/2025 | |
| 3.2.0 | 450 | 12/19/2024 | |
| 3.1.5 | 209 | 12/16/2024 | |
| 3.1.2 | 269 | 12/13/2024 | |
| 3.1.0 | 515 | 12/6/2024 | |
| 3.0.0 | 414 | 12/3/2024 | |
| 2.1.3 | 457 | 12/3/2024 | |
| 2.1.0 | 416 | 12/2/2024 | |
| 2.0.5 | 393 | 11/26/2024 | |
| 2.0.3 | 169 | 11/20/2024 | |
| 2.0.2 | 473 | 11/18/2024 | |
| 2.0.1 | 372 | 11/15/2024 | |
| 2.0.0 | 411 | 11/14/2024 | |
| 1.0.47 | 452 | 11/14/2024 | |
| 1.0.42 | 516 | 11/12/2024 | |
| 1.0.40 | 547 | 11/12/2024 | |
| 1.0.37 | 569 | 11/4/2024 | |
| 1.0.31 | 489 | 10/31/2024 | |
| 1.0.28 | 540 | 10/25/2024 | |
| 1.0.26 | 507 | 10/18/2024 | |
| 1.0.25 | 426 | 10/17/2024 | |
| 1.0.24 | 385 | 10/17/2024 | |
| 1.0.19 | 517 | 10/11/2024 | |
| 1.0.17 | 725 | 9/27/2024 | |
| 1.0.16 | 449 | 9/27/2024 | |
| 1.0.14 | 483 | 9/23/2024 | |
| 1.0.13 | 494 | 9/18/2024 | |
| 1.0.12 | 667 | 9/18/2024 | |
| 1.0.10 | 518 | 9/11/2024 | |
| 1.0.9 | 520 | 9/11/2024 | |
| 1.0.8 | 574 | 9/11/2024 | |
| 1.0.7 | 593 | 9/11/2024 | |
| 1.0.6 | 220 | 9/9/2024 | |
| 1.0.5 | 232 | 9/5/2024 | |
| 1.0.4 | 204 | 9/5/2024 | |
| 1.0.3 | 195 | 9/4/2024 | |
| 1.0.2 | 205 | 9/4/2024 | |
| 1.0.1 | 560 | 9/4/2024 | |
| 1.0.0 | 575 | 9/2/2024 |