Example #1
0
        /// <summary>
        /// Create a mapping node.
        /// </summary>
        /// <param name="nodes">Sequential list of key/value pairs.</param>
        /// <param name="tag">Tag for the mapping.</param>
        /// <returns>Created mapping node.</returns>
        protected static YamlMapping map_tag(string tag, params YamlNode[] nodes)
        {
            var map = new YamlMapping(nodes);

            map.Tag = tag;
            return(map);
        }
Example #2
0
 void Merge(YamlMapping map)
 {
     foreach (var entry in map)
     {
         if (!ContainsKey(entry.Key))
         {
             Add(entry.Key, entry.Value);
         }
     }
 }