Example #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);
        }
Example #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;
 }
Example #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);
        }
Example #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;
 }