Beispiel #1
0
        public static void SavePropertiesToFile(object instance, string fileName)
        {
            FileStream   fileStream   = File.Create(fileName);
            StreamWriter streamWriter = new StreamWriter(fileStream);

            InstanceIO.SavePropertiesToStream(instance, streamWriter);
            streamWriter.Close();
            fileStream.Close();
        }
Beispiel #2
0
 public void SavePropertiesToStream(StreamWriter streamWriter)
 {
     InstanceIO.SavePropertiesToStream(this, streamWriter);
 }