コード例 #1
0
ファイル: ClassifyBinary.cs プロジェクト: biorpg/RT.Util
 /// <summary>
 ///     Reconstructs an object from the specified file by applying the values to an existing instance of the desired type.
 ///     The type of object is inferred from the object passed in.</summary>
 /// <param name="filename">
 ///     Path and filename of the file to read from.</param>
 /// <param name="intoObject">
 ///     Object to assign values to in order to reconstruct the original object. Also determines the type of object
 ///     expected.</param>
 /// <param name="options">
 ///     Options.</param>
 public static void DeserializeFileIntoObject(string filename, object intoObject, ClassifyOptions options = null)
 {
     Classify.DeserializeFileIntoObject(filename, intoObject, DefaultFormat, options);
 }
コード例 #2
0
ファイル: ClassifyXml.cs プロジェクト: biorpg/RT.Util
 /// <summary>
 ///     Reconstructs an object from the specified file by applying the values to an existing instance of the desired
 ///     type. The type of object is inferred from the object passed in.</summary>
 /// <param name="filename">
 ///     Path and filename of the file to read from.</param>
 /// <param name="intoObject">
 ///     Object to assign values to in order to reconstruct the original object. Also determines the type of object
 ///     expected.</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 DeserializeFileIntoObject(string filename, object intoObject, ClassifyOptions options = null, IClassifyFormat <XElement> format = null)
 {
     Classify.DeserializeFileIntoObject <XElement>(filename, intoObject, format ?? DefaultFormat, options);
 }