Ejemplo n.º 1
0
        private string ConvertToFormat(string sourceContent, string sourceFormat, string destinationFormat)
        {
            IDeserializer deseralizer  = GetDeserializer(sourceFormat);
            ISerializer   serializer   = GetSerializer(destinationFormat);
            object        deserialized = deseralizer.Deserilalize(sourceContent);

            return(serializer.Serialize(deserialized));
        }