コード例 #1
0
        public static YamlMetadata DeserializeYaml(string yaml)
        {
            var yamlDeserializer = YamlFactory.DeserializerGetOrCreate();

            return(yamlDeserializer.Deserialize <YamlMetadata>(yaml));
        }
コード例 #2
0
        public static string SerializeYaml(YamlMetadata yaml)
        {
            var yamlDeserializer = YamlFactory.SerializerGetOrCreate();

            return(yamlDeserializer.Serialize(yaml));
        }