diff --git a/CodeAnalysisDictionary.xml b/CustomDictionary.xml similarity index 94% rename from CodeAnalysisDictionary.xml rename to CustomDictionary.xml index 1b5c280..ee8f231 100644 --- a/CodeAnalysisDictionary.xml +++ b/CustomDictionary.xml @@ -15,6 +15,7 @@ iraimbilanja cinquième ariary + Ldml ComPlus @@ -23,6 +24,7 @@ USDollar + ISO \ No newline at end of file diff --git a/NextVersion.txt b/NextVersion.txt deleted file mode 100644 index 341cf11..0000000 --- a/NextVersion.txt +++ /dev/null @@ -1 +0,0 @@ -0.2.0 \ No newline at end of file diff --git a/NodaMoney.Serialization.AspNet/MoneyJavaScriptConverter.cs b/NodaMoney.Serialization.AspNet/MoneyJavaScriptConverter.cs index c2c4c85..429f1a6 100644 --- a/NodaMoney.Serialization.AspNet/MoneyJavaScriptConverter.cs +++ b/NodaMoney.Serialization.AspNet/MoneyJavaScriptConverter.cs @@ -15,10 +15,7 @@ namespace NodaMoney.Serialization.AspNet public class MoneyJavaScriptConverter : JavaScriptConverter { /// When overridden in a derived class, gets a collection of the supported types. - public override IEnumerable SupportedTypes - { - get { return new ReadOnlyCollection(new List(new[] { typeof(Money) })); } - } + public override IEnumerable SupportedTypes => new ReadOnlyCollection(new List(new[] { typeof(Money) })); /// When overridden in a derived class, converts the provided dictionary into an object of the specified type. /// An instance of property data stored as name/value pairs. @@ -30,9 +27,9 @@ public override IEnumerable SupportedTypes public override object Deserialize(IDictionary dictionary, Type type, JavaScriptSerializer serializer) { if (dictionary == null) - throw new ArgumentNullException("dictionary"); + throw new ArgumentNullException(nameof(dictionary)); if (type != typeof(Money)) - throw new ArgumentException("object should be of type Money to deserialize!", "type"); + throw new ArgumentException("object should be of type Money to deserialize!", nameof(type)); decimal amount = decimal.Parse((string)dictionary["amount"], CultureInfo.InvariantCulture); string code = (string)dictionary["currency"]; diff --git a/NodaMoney.Serialization.AspNet/NodaMoney.Serialization.AspNet.csproj b/NodaMoney.Serialization.AspNet/NodaMoney.Serialization.AspNet.csproj index 49c9b4f..646db6c 100644 --- a/NodaMoney.Serialization.AspNet/NodaMoney.Serialization.AspNet.csproj +++ b/NodaMoney.Serialization.AspNet/NodaMoney.Serialization.AspNet.csproj @@ -9,8 +9,9 @@ Properties NodaMoney.Serialization.AspNet NodaMoney.Serialization.AspNet - v4.5 + v4.6 512 + true @@ -46,17 +47,17 @@ - - - Properties\CodeAnalysisDictionary.xml - - {1814E8DE-0E75-4E23-9F70-E039AC816B42} NodaMoney + + + Properties\CustomDictionary.xml + +