Esempio n. 1
0
        /// <summary>
        ///     Returns a ConfigFile by parsing a .rap file
        /// </summary>
        /// <remarks>Will throw a RapFormatException if the file is malformed</remarks>
        /// <param name="fileName">The path to the .rap file</param>
        public static ConfigFile ReadConfig(string fileName)
        {
            var rap = new RapFile(fileName);

            return(rap.Root);
        }
Esempio n. 2
0
 /// <summary>
 ///     Returns a ConfigFile by parsing a stream representing a .rap file
 /// </summary>
 /// <remarks>Will throw a RapFormatException if the file is malformed</remarks>
 /// <param name="inputStream">The stream representing a .rap file</param>
 public static ConfigFile ReadConfig(Stream inputStream) {
     var rap = new RapFile(inputStream);
     return rap.Root;
 }
Esempio n. 3
0
        /// <summary>
        ///     Returns a ConfigFile by parsing a stream representing a .rap file
        /// </summary>
        /// <remarks>Will throw a RapFormatException if the file is malformed</remarks>
        /// <param name="inputStream">The stream representing a .rap file</param>
        public static ConfigFile ReadConfig(Stream inputStream)
        {
            var rap = new RapFile(inputStream);

            return(rap.Root);
        }
Esempio n. 4
0
 /// <summary>
 ///     Returns a ConfigFile by parsing a .rap file
 /// </summary>
 /// <remarks>Will throw a RapFormatException if the file is malformed</remarks>
 /// <param name="fileName">The path to the .rap file</param>
 public static ConfigFile ReadConfig(string fileName) {
     var rap = new RapFile(fileName);
     return rap.Root;
 }