Class IDictionaryExtensions
- Namespace
- Songhay.Publications.Extensions
- Assembly
- Songhay.Publications.dll
Extensions of IDictionary<TKey, TValue>
public static class IDictionaryExtensions
- Inheritance
-
IDictionaryExtensions
- Inherited Members
Methods
ToIDocumentJsonObject(IDictionary<string, object>?)
Converts the conventional, YamlDotNet dictionary
to the conventional, Publications JsonObject
public static JsonObject? ToIDocumentJsonObject(this IDictionary<string, object>? data)
Parameters
dataIDictionary<string, object>the conventional,
YamlDotNetdictionary
Returns
Remarks
The incoming YamlDotNet dictionary should have keys
that match the property names of IDocument.
- See Also
ToJsonString(IDictionary<string, object>?)
Converts the specified IDictionary<TKey, TValue> to a JSON string.
public static string ToJsonString(this IDictionary<string, object>? data)
Parameters
dataIDictionary<string, object>
Returns
ToTaggedDocument(IDictionary<string, object>?, ILogger, params string[])
Converts the specified IDictionary<TKey, TValue> to IDocument
public static IDocument? ToTaggedDocument(this IDictionary<string, object>? data, ILogger logger, params string[] tagKeys)
Parameters
dataIDictionary<string, object>loggerILoggerthe ILogger
tagKeysstring[]the keys to search for tagging the IDocument