Example #1
0
        public static void LoadPropertiesFromFile(object instance, string fileName)
        {
            FileStream   fileStream   = File.OpenRead(fileName);
            StreamReader streamReader = new StreamReader(fileStream);

            InstanceIO.LoadPropertiesFromStream(instance, streamReader);
            streamReader.Close();
            fileStream.Close();
        }
Example #2
0
 public void LoadPropertiesFromStream(StreamReader streamReader)
 {
     InstanceIO.LoadPropertiesFromStream(this, streamReader);
 }