Note Data Model

H.Necessaire offers a simpler syntax for KeyValuePair<string, string>, called Note

Note Data Model
Photo by David Travis / Unsplash
dotnet add package H.Necessaire

H.Necessaire

H.Necessaire's Note data model is just a simple alternative to KeyValuePair<string, string> and that's all there is to it. You'll notice it being used extensively throughout the library on various models to hold arbitrary add-on information.

struct Note
{
  string ID
  string Value
}

The simple definition of Note

Helper Static Methods

static Note[] FromDictionary(IDictionary<string, string> keyValuePairs)

static Note[] GetEnvironmentInfo()
H.Necessaire/Src/H.Necessaire/H.Necessaire/Models/Note.cs at master · hinteadan/H.Necessaire
A collection of useful data and execution extensions for .NET - hinteadan/H.Necessaire