//-------------------------------------------------------------------------------------- /// <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())); }
//-------------------------------------------------------------------------------------- /// <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)); }