Пример #1
0
        public static UnityProject Load(string path)
        {
            UnityProjectReader reader = new UnityProjectReader(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(); }
        }
Пример #2
0
        public static UnityProject Load(string path)
        {
            UnityProjectReader reader = new UnityProjectReader(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(); }
        }