Example #1
0
 /// <summary>
 ///     Stores the specified object in a file with the given path and filename.</summary>
 /// <param name="saveType">
 ///     Type of the object to store.</param>
 /// <param name="saveObject">
 ///     Object to store in a file.</param>
 /// <param name="filename">
 ///     Path and filename of the file to be created. If the file already exists, it is overwritten.</param>
 /// <param name="options">
 ///     Options.</param>
 public static void SerializeToFile(Type saveType, object saveObject, string filename, ClassifyOptions options = null)
 {
     Classify.SerializeToFile(saveType, saveObject, filename, DefaultFormat, options);
 }
Example #2
0
 /// <summary>
 ///     Stores the specified object in a file with the given path and filename.</summary>
 /// <typeparam name="T">
 ///     Type of the object to store.</typeparam>
 /// <param name="saveObject">
 ///     Object to store in a file.</param>
 /// <param name="filename">
 ///     Path and filename of the file to be created. If the file already exists, it is overwritten.</param>
 /// <param name="options">
 ///     Options.</param>
 /// <param name="format">
 ///     Implementation of a Classify format. See <see cref="ClassifyXmlFormat"/> for an example.</param>
 public static void SerializeToFile <T>(T saveObject, string filename, ClassifyOptions options = null, IClassifyFormat <XElement> format = null)
 {
     Classify.SerializeToFile(saveObject, filename, format ?? DefaultFormat, options);
 }