/// <summary> /// Reconstructs an object of the specified type from the specified file.</summary> /// <param name="type"> /// Type of object to read.</param> /// <param name="options"> /// Options.</param> /// <param name="filename"> /// Path and filename of the file to read from.</param> /// <returns> /// A new instance of the requested type.</returns> public static object DeserializeFile(Type type, string filename, ClassifyOptions options = null) { return(Classify.DeserializeFile(type, filename, DefaultFormat, options)); }
/// <summary> /// Reconstructs an object of the specified type from the specified file.</summary> /// <param name="type"> /// Type of object to read.</param> /// <param name="options"> /// Options.</param> /// <param name="filename"> /// Path and filename of the file to read from.</param> /// <param name="format"> /// Implementation of a Classify format. See <see cref="ClassifyXmlFormat"/> for an example.</param> /// <returns> /// A new instance of the requested type.</returns> public static object DeserializeFile(Type type, string filename, ClassifyOptions options = null, IClassifyFormat <XElement> format = null) { return(Classify.DeserializeFile <XElement>(type, filename, format ?? DefaultFormat, options)); }
/// <summary> /// Reconstructs an object of the specified type from the specified file.</summary> /// <typeparam name="T"> /// Type of object to read.</typeparam> /// <param name="options"> /// Options.</param> /// <param name="filename"> /// Path and filename of the file to read from.</param> /// <returns> /// A new instance of the requested type.</returns> public static T DeserializeFile <T>(string filename, ClassifyOptions options = null) { return(Classify.DeserializeFile <node, T>(filename, DefaultFormat, options)); }
/// <summary> /// Reconstructs an object of the specified type from the specified file.</summary> /// <typeparam name="T"> /// Type of object to read.</typeparam> /// <param name="options"> /// Options.</param> /// <param name="filename"> /// Path and filename of the file to read from.</param> /// <param name="format"> /// Implementation of a Classify format. See <see cref="ClassifyXmlFormat"/> for an example.</param> /// <returns> /// A new instance of the requested type.</returns> public static T DeserializeFile <T>(string filename, ClassifyOptions options = null, IClassifyFormat <XElement> format = null) { return(Classify.DeserializeFile <XElement, T>(filename, format ?? DefaultFormat, options)); }