Example #1
0
        //--------------------------------------------------------------------------------------
        /// <summary>
        /// DeSerialize - turn xml into an object
        /// </summary>
        //--------------------------------------------------------------------------------------
        public static object DeSerialize(string serializerOutput, bool bestEffort = true)
        {
            var serializer = new VarmintSerializer(bestEffort);

            return(serializer.DeserializeInternal(serializerOutput, Assembly.GetCallingAssembly(), Assembly.GetExecutingAssembly()));
        }
Example #2
0
        //--------------------------------------------------------------------------------------
        /// <summary>
        /// Serialize - turn an object into XML
        /// </summary>
        //--------------------------------------------------------------------------------------
        public static string Serialize(object serializeMe, bool bestEffort = true)
        {
            var serializer = new VarmintSerializer(bestEffort);

            return(serializer.SerializeInternal(serializeMe));
        }