public static GenericProject Load(string path)
 {
     GenericProjectReader reader = new GenericProjectReader(path);
     try
     {
         return reader.ReadProject();
     }
     catch (XmlException exception)
     {
         string format = string.Format("Error in XML Document line {0}, position {1}.", exception.LineNumber, exception.LinePosition);
         throw new Exception(format, exception);
     }
     finally { reader.Close(); }
 }
Example #2
0
        public static GenericProject Load(string path)
        {
            GenericProjectReader reader = new GenericProjectReader(path);

            try
            {
                return(reader.ReadProject());
            }
            catch (System.Xml.XmlException exception)
            {
                string format = string.Format("Error in XML Document line {0}, position {1}.", exception.LineNumber, exception.LinePosition);
                throw new Exception(format, exception);
            }
            finally { reader.Close(); }
        }