Ejemplo n.º 1
0
        public string ConvertToString()
        {
            var serializerSettings = new SerializerSettings()
            {
                //  EmitTags = false
            };

            serializerSettings.DefaultStyle          = SharpYaml.YamlStyle.Any;
            serializerSettings.ComparerForKeySorting = null;
            serializerSettings.RegisterTagMapping("Header", typeof(Header));

            return(FLAN.ToXml((Header)BxlanHeader));

            var    serializer = new Serializer(serializerSettings);
            string yaml       = serializer.Serialize(BxlanHeader, typeof(Header));

            return(yaml);
        }
Ejemplo n.º 2
0
 public void ConvertFromString(string text)
 {
     BxlanHeader          = FLAN.FromXml(text);
     BxlanHeader.FileInfo = this;
 }