Info
Version: | 3.2018.1024.16142 |
Author(s): | Original author: Will Hopkins - Moonrise Media Ltd. |
Last Update: | Wednesday, October 24, 2018 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Moonrise.Utils.Standard |
Install
Install-Package Moonrise.Utils.Standard
dotnet add package Moonrise.Utils.Standard
paket add Moonrise.Utils.Standard
Moonrise.Utils.Standard Download (Unzip the "nupkg" after downloading)
Dependencies
- DeepCloner(>= 0.10.2)
- Newtonsoft.Json(>= 10.0.2)
Particular highlights include;
Extensions.EnumExtensions : "Modifiable" description attributes with parsing from descriptions to associated enum value.
Extensions.DateTimeExtensions : Neat little <DateTime var>.Within to find if the DT was within the last X seconds/days/etc
Extensions.StringExtensions: To & from Comma Separated Lists and extract text from within specified "marker strings".
Config.Settings: Typed reading from and writing default values to the .config or .json file.
Exceptions.ReasonedExceptionT: Base class for my exception pattern that accompanies an exception with an enum reason where the description attribute provides both the (formattable) message and intellisense. This leads to a centralised list of all possible exception reasons and messages.
Database.TransactedConnection : Handles nested transactions/connections.
Validation : A number of additional validation attributes including ListContent, Child/Parent, NonDefault.