From d9dd583172b297c70df29a60e0f94fb2325f38a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gonza=CC=81lez=20Garci=CC=81a?= Date: Sat, 27 Jan 2024 10:41:05 +0100 Subject: [PATCH] fix build --- src/NMoneys.Serialization/NMoneys.Serialization.csproj | 3 +-- src/NMoneys/Money.Parsing.cs | 4 ++-- .../Support/quantity_containers.cs | 3 +++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/NMoneys.Serialization/NMoneys.Serialization.csproj b/src/NMoneys.Serialization/NMoneys.Serialization.csproj index 47383e4..e5ada77 100644 --- a/src/NMoneys.Serialization/NMoneys.Serialization.csproj +++ b/src/NMoneys.Serialization/NMoneys.Serialization.csproj @@ -12,13 +12,12 @@ Custom serialization/deserialization code samples of monetary quantities with several popular serialization libraries. NMoneys.Serialization - Copyright © Daniel Gonzalez Garcia 2011 + Copyright © Daniel Gonzalez Garcia 2024 https://github.com/dgg/nmoneys.git git - README.md .net;dotnet;C#;currency;money;iso;monetary;quantity;iso4217;serialization;Json.NET;BSON;Xml;System.Text.Json;Entity Framework diff --git a/src/NMoneys/Money.Parsing.cs b/src/NMoneys/Money.Parsing.cs index 61a6975..ee845c4 100644 --- a/src/NMoneys/Money.Parsing.cs +++ b/src/NMoneys/Money.Parsing.cs @@ -6,7 +6,7 @@ namespace NMoneys; public partial struct Money { /// - /// Converts the string representation of a monetary quantity () to its equivalent. + /// Converts the string representation of a monetary quantity () to its equivalent. /// /// The currency value does not contain enumeration information. /// The amount value is not in the correct format. @@ -26,7 +26,7 @@ public static Money Parse(string quantity) } /// - /// Tries to converts the string representation of a monetary quantity () to its equivalent. + /// Tries to converts the string representation of a monetary quantity () to its equivalent. /// /// /// When this method returns, contains the monetary quantity equivalent to its representation contained in , diff --git a/tests/NMoneys.Serialization.Tests/Support/quantity_containers.cs b/tests/NMoneys.Serialization.Tests/Support/quantity_containers.cs index 13e21d6..6d2c152 100644 --- a/tests/NMoneys.Serialization.Tests/Support/quantity_containers.cs +++ b/tests/NMoneys.Serialization.Tests/Support/quantity_containers.cs @@ -1,7 +1,10 @@ +// ReSharper disable PropertyCanBeMadeInitOnly.Global +#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. namespace NMoneys.Serialization.Tests.Support; public class Dto { + public string S { get; set; } public MonetaryQuantity M { get; set; } }