You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just looked at toml and I like the syntax mush more then json.
However I am looking for something like this in a toml library...
vartomlFile=newTomlFile(filepath);tomlFile.Set<T>(Tvalue);//create if doesn't exist and sets itTvalue=tomlFile.Get<T>();//gets the value or default.tomlFile.Save();//optional filepath
Is this supported if not how hard would it be to do?
Edit: btw the name and avatar of this library made me laugh.
The text was updated successfully, but these errors were encountered:
Sorry for not answering earlier. Tommy's API followed that of SimpleJSON and was made for quick and low-level access to a TOML document. I, therefore, tried to be careful with terminology and called Tommy a TOML reader and writer instead of "deserialiser and serialiser".
If you need higher-level access, you can write extensions on top of Tommy that implement it. There are already some basic implementations, for example.
instance-id/Tommy.Serializer implements a full serialiser. Although the project isn't seemingly maintained actively, upgrading it to Tommy 3.0.0 should be possible.
Tommy.Extensions.Configuration NuGet package implements Microsoft.Extensions.Configuration-compliant TOML loading. With it, you can use the standard Options API that you may be familiar with from ASP.NET Core
There are also other TOML implementations for C# that take a more high-level approach. I am aware of [SamboyCoding/Tomlet(https://github.com/SamboyCoding/Tomlet), which has a full-blown (de)serialiser as part of the library.
I just looked at toml and I like the syntax mush more then json.
However I am looking for something like this in a toml library...
Is this supported if not how hard would it be to do?
Edit: btw the name and avatar of this library made me laugh.
The text was updated successfully, but these errors were encountered: