コード例 #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);
        }
コード例 #2
0
ファイル: RapFile.cs プロジェクト: MaHuJa/withSIX.Desktop
 /// <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;
 }
コード例 #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);
        }
コード例 #4
0
ファイル: RapFile.cs プロジェクト: MaHuJa/withSIX.Desktop
 /// <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;
 }