Table of Contents

Class ExtraAttributes

Namespace
EncDotNet.S100.DataModel
Assembly
EncDotNet.S100.Core.dll

Helpers for the ExtraAttributes dictionary that every typed object exposes — a verbatim preservation of any attribute the typed projection did not consume.

public static class ExtraAttributes
Inheritance
ExtraAttributes
Inherited Members

Remarks

Typed-model authors collect every attribute they consume into a known-keys list, then call ExcludeKnown(IReadOnlyDictionary<string, string>, params string[]) to obtain the IReadOnlyDictionary<TKey, TValue> exposed on the typed object. This preserves round-trip fidelity for extension and future-edition attributes that the typed model does not yet model.

Methods

ExcludeKnown(IReadOnlyDictionary<string, string>, params string[])

Returns a copy of source with every key in knownKeys removed. Comparison is case-insensitive.

public static IReadOnlyDictionary<string, string> ExcludeKnown(IReadOnlyDictionary<string, string> source, params string[] knownKeys)

Parameters

source IReadOnlyDictionary<string, string>
knownKeys string[]

Returns

IReadOnlyDictionary<string, string>