Example #1
0
 public static YAMLNode ExportYAML(this IEnumerable <int> _this, bool isRaw)
 {
     if (isRaw)
     {
         foreach (int value in _this)
         {
             s_sb.Append(value.ToHexString());
         }
         YAMLScalarNode node = new YAMLScalarNode(s_sb.ToString());
         s_sb.Length = 0;
         return(node);
     }
     else
     {
         YAMLSequenceNode node = new YAMLSequenceNode(SequenceStyle.Block);
         foreach (int value in _this)
         {
             node.Add(value);
         }
         return(node);
     }
 }