Exemple #1
0
        /// <summary>
        /// Puts the specified named attributes into JsonDynamicObject. If attribute is not found it is skipped.
        /// You can specify optional rename pattern like so "src->target" e.g. : node.ToMapOfAttrs("run-id->id","description->d");
        /// </summary>
        public static dynamic ToDynOfAttrs(this IConfigSectionNode node, params string[] attrNames)
        {
            var map = node.ToMapOfAttrs(keepAbsent: true, attrNames: attrNames);

            return(new JsonDynamicObject(map));
        }