/// <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); }
/// <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; }
/// <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); }
/// <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; }