pauldeen79.CrossCutting.Utilities.Parsers
5.4.1
dotnet add package pauldeen79.CrossCutting.Utilities.Parsers --version 5.4.1
NuGet\Install-Package pauldeen79.CrossCutting.Utilities.Parsers -Version 5.4.1
<PackageReference Include="pauldeen79.CrossCutting.Utilities.Parsers" Version="5.4.1" />
paket add pauldeen79.CrossCutting.Utilities.Parsers --version 5.4.1
#r "nuget: pauldeen79.CrossCutting.Utilities.Parsers, 5.4.1"
// Install pauldeen79.CrossCutting.Utilities.Parsers as a Cake Addin #addin nuget:?package=pauldeen79.CrossCutting.Utilities.Parsers&version=5.4.1 // Install pauldeen79.CrossCutting.Utilities.Parsers as a Cake Tool #tool nuget:?package=pauldeen79.CrossCutting.Utilities.Parsers&version=5.4.1
CrossCutting
Generic utilities and other stuff, usable in any layer of any solution. We're targeting .NET Standard 2.0, so you can even use .NET Framework 4.x if you want to.
This repository consists of the following packages:
Package name | Description |
---|---|
CrossCutting.Common | Provider for system date and user name, some useful extension methods on System.Object and System.String, and the Result class |
CrossCutting.Common.Testing | Helps you test constructors on null checks |
CrossCutting.Data.Abstractions | Abstraction for executing database commands using System.Data namespace (IDbConnection and IDbCommand) |
CrossCutting.Data.Core | Default implementation of database commands |
CrossCutting.Data.Sql | Extension methods for working with database commands in System.Data namespace (IDbConnection) |
CrossCutting.DataTableDumper | Produces flat-text data tables from objects |
CrossCutting.Utilities.ObjectDumper | Produces readable flat-text representation from objects, for use in logging |
CrossCutting.Utilities.Parsers | Parser for pipe-delmited data table strings, TSQL INSERT INTO statements, expression strings, function strings, math expressions and formattable strings (dynamic interpolated strings) |
System.Data.Stub | Stubs for System.Data interfaces like IDbConnection, IDbCommand and IDataReader |
Using NSubstitute or Moq as mock factory for CrossCutting.Common.Testing
To use NSubstitute as a mock factory for the code in CrossCutting.Common.Testing, create a test helper project within your solution, and add the following code:
public static void ShouldThrowArgumentNullExceptionsInConstructorsOnNullArguments(
this Type type,
Func<ParameterInfo, bool>? parameterPredicate = null,
Func<ParameterInfo, object?>? parameterReplaceDelegate = null,
Func<ConstructorInfo, bool>? constructorPredicate = null)
=> ShouldThrowArgumentNullExceptionsInConstructorsOnNullArguments(
type,
t => t.CreateInstance(parameterType => Substitute.For(new[] { parameterType }, Array.Empty<object>()), parameterReplaceDelegate, constructorPredicate),
parameterPredicate,
parameterReplaceDelegate,
constructorPredicate);
You can easily replace NSubstitute with Moq, if you want, by changing the factory delegate argument to this:
t => t.CreateInstance(parameterType => ((Mock)Activator.CreateInstance(typeof(Mock<>).MakeGenericType(parameterType))).Object, parameterReplaceDelegate, constructorPredicate),
Upgrade from 2.x to 3.0
There has been a breaking change in the Result class, which lead to a new major version. To port the old code, you can fix most errors by replace this:
Result<([^>]+)>\.([^(]+)\(
With this:
Result.$2<$1>(
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- pauldeen79.CrossCutting.Common (>= 3.13.0)
- pauldeen79.CrossCutting.Utilities.Aggregators (>= 3.13.0)
- pauldeen79.CrossCutting.Utilities.Operators (>= 3.13.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on pauldeen79.CrossCutting.Utilities.Parsers:
Package | Downloads |
---|---|
pauldeen79.ClassFramework.Pipelines
Package Description |
|
pauldeen79.TemplateFramework.TemplateProviders.StringTemplateProvider
Framework for template processing and code generation |
|
pauldeen79.TemplateFramework.TemplateProviders.FormattableStringTemplateProvider
Framework for template processing and code generation |
|
pauldeen79.ExpressionFramework.Domain.Parser
Package Description |
|
pauldeen79.CrossCutting.Utilities.Parsers.Builders
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.4.1 | 111 | 11/18/2024 |
5.4.0 | 208 | 11/17/2024 |
5.3.4 | 550 | 10/29/2024 |
5.3.3 | 239 | 10/18/2024 |
5.3.2 | 380 | 9/21/2024 |
5.3.1 | 356 | 9/11/2024 |
5.3.0 | 219 | 8/28/2024 |
5.2.1 | 1,369 | 5/9/2024 |
5.1.1 | 422 | 5/3/2024 |
5.1.0 | 380 | 4/27/2024 |
5.0.0 | 432 | 4/16/2024 |
4.0.0 | 470 | 4/5/2024 |
3.7.0 | 911 | 3/22/2024 |
3.6.0 | 155 | 3/21/2024 |
3.5.0 | 431 | 3/15/2024 |
3.4.0 | 352 | 3/14/2024 |
3.3.0 | 1,287 | 11/24/2023 |
3.2.0 | 222 | 11/19/2023 |
3.0.0 | 307 | 10/21/2023 |
2.12.0 | 208 | 10/6/2023 |
2.10.0 | 285 | 9/13/2023 |
2.9.0 | 333 | 9/9/2023 |
2.8.0 | 282 | 9/9/2023 |
2.7.59 | 231 | 9/8/2023 |
2.7.58 | 240 | 9/6/2023 |
2.7.57 | 355 | 8/31/2023 |
2.7.56 | 201 | 8/30/2023 |
2.7.55 | 418 | 5/15/2023 |
2.7.54 | 212 | 5/15/2023 |
2.7.53 | 413 | 5/8/2023 |
2.7.52 | 677 | 5/6/2023 |
2.7.51 | 205 | 5/5/2023 |
2.7.50 | 197 | 5/2/2023 |
2.7.49 | 189 | 5/2/2023 |
2.7.48 | 166 | 5/2/2023 |
2.7.47 | 159 | 5/2/2023 |
2.7.46 | 175 | 5/2/2023 |
2.7.45 | 178 | 5/2/2023 |
2.7.44 | 178 | 5/2/2023 |
2.7.43 | 169 | 5/2/2023 |
2.7.42 | 153 | 5/1/2023 |
2.7.41 | 185 | 5/1/2023 |
2.7.40 | 274 | 4/28/2023 |
2.7.39 | 205 | 4/27/2023 |
2.7.38 | 202 | 4/27/2023 |
2.7.37 | 220 | 4/26/2023 |
2.7.36 | 206 | 4/24/2023 |
2.7.35 | 222 | 4/22/2023 |
2.7.34 | 217 | 4/20/2023 |
2.7.33 | 222 | 4/17/2023 |
2.7.32 | 221 | 4/17/2023 |
2.7.31 | 175 | 4/16/2023 |
2.7.30 | 201 | 4/10/2023 |
2.7.29 | 223 | 4/10/2023 |
2.7.28 | 208 | 4/9/2023 |
2.7.27 | 215 | 4/9/2023 |
2.7.26 | 202 | 4/7/2023 |
2.7.25 | 431 | 10/14/2022 |
2.7.24 | 439 | 10/14/2022 |
2.7.23 | 432 | 9/20/2022 |
2.7.22 | 436 | 8/28/2022 |
2.7.21 | 438 | 8/26/2022 |
2.7.20 | 433 | 8/26/2022 |
2.7.19 | 419 | 8/24/2022 |
2.7.18 | 441 | 8/15/2022 |
2.7.17 | 449 | 7/1/2022 |
2.7.16 | 435 | 6/30/2022 |
2.7.15 | 433 | 6/29/2022 |
2.7.14 | 441 | 6/29/2022 |
2.7.13 | 475 | 6/26/2022 |
2.7.12 | 477 | 6/24/2022 |
2.7.11 | 453 | 6/24/2022 |
2.7.10 | 438 | 6/17/2022 |
2.7.9 | 450 | 6/16/2022 |
2.7.8 | 478 | 6/8/2022 |
2.7.7 | 416 | 5/27/2022 |
2.7.6 | 480 | 2/27/2022 |
2.7.5 | 466 | 2/24/2022 |
2.7.4 | 473 | 1/31/2022 |
2.7.3 | 315 | 12/22/2021 |
2.7.2 | 314 | 12/18/2021 |
2.7.1 | 307 | 12/17/2021 |
2.7.0 | 326 | 12/16/2021 |
2.6.2 | 535 | 12/9/2021 |
2.6.1 | 318 | 11/30/2021 |
2.6.0 | 316 | 11/28/2021 |
2.5.3 | 327 | 11/27/2021 |
2.5.2 | 2,069 | 11/26/2021 |
2.5.0 | 2,274 | 11/26/2021 |
2.4.2 | 3,194 | 11/25/2021 |
2.4.1 | 2,639 | 11/25/2021 |
2.4.0 | 335 | 11/23/2021 |
2.3.0 | 346 | 11/22/2021 |
2.2.5 | 1,209 | 11/20/2021 |
2.2.4 | 802 | 11/19/2021 |
2.2.3 | 399 | 11/18/2021 |
2.2.2 | 346 | 11/18/2021 |
2.2.1 | 379 | 11/17/2021 |
2.2.0 | 328 | 11/14/2021 |
2.1.1 | 415 | 11/7/2021 |
2.1.0 | 360 | 11/1/2021 |
2.0.3 | 374 | 10/31/2021 |
2.0.2 | 380 | 10/31/2021 |
2.0.1 | 383 | 10/31/2021 |
2.0.0 | 374 | 10/31/2021 |
1.2.1 | 454 | 10/30/2021 |
1.2.0 | 356 | 10/27/2021 |
1.1.0 | 367 | 9/17/2021 |
1.0.12 | 375 | 9/16/2021 |
1.0.11 | 376 | 4/29/2021 |
1.0.10 | 336 | 4/27/2021 |
1.0.9 | 364 | 4/27/2021 |
1.0.8 | 362 | 4/11/2021 |
1.0.7 | 357 | 4/10/2021 |
1.0.6 | 384 | 4/10/2021 |
1.0.5 | 382 | 4/2/2021 |
1.0.4 | 381 | 3/30/2021 |