コード例 #1
0
        public static AS2Project Load(string path)
        {
            AS2ProjectReader reader = new AS2ProjectReader(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
ファイル: AS2Project.cs プロジェクト: Neverbirth/flashdevelop
        public static AS2Project Load(string path)
        {
            AS2ProjectReader reader = new AS2ProjectReader(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(); }
        }