Info
Version: | 5.2024.209.8452 |
Author(s): | Will Hopkins |
Last Update: | Friday, February 9, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/whopkinscom/Development/tree/master/Source/NetStd/Moonrise.StandardUtils.NetStd |
NuGet Url: | https://www.nuget.org/packages/Moonrise.StandardUtils.NetStd |
Install
Install-Package Moonrise.StandardUtils.NetStd
dotnet add package Moonrise.StandardUtils.NetStd
paket add Moonrise.StandardUtils.NetStd
Moonrise.StandardUtils.NetStd Download (Unzip the "nupkg" after downloading)
Dependencies
- Newtonsoft.Json(>= 11.0.2)
- System.ComponentModel.Annotations(>= 4.5.0)
- System.Runtime.Extensions(>= 4.3.0)
- System.Security.Cryptography.ProtectedData(>= 4.5.0)
- System.Threading.Tasks.Parallel(>= 4.3.0)
Particular highlights include;
Extensions.EnumExtensions : "Modifiable" description attributes with parsing from descriptions to associated enum value.
Extensions.DateTimeExtensions : Neat little DateTime.Within to find if the DT was within the last X seconds/days/etc
Extensions.StringExtensions: To and from Comma Separated Lists and extract text from within specified "marker strings", i.e. ad-hoc parsing.
Config.Settings: Typed reading from and writing default values to a .json settings 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.