public static Solution FromFile(string solutionFullPath) { using (var reader = new SolutionReader(solutionFullPath)) { var solution = reader.ReadSolutionFile(); solution.FullPath = solutionFullPath; return(solution); } }
public static Solution FromStream(string solutionFullPath, [NotNull] Stream stream) { using (var reader = new SolutionReader(stream)) { var solution = reader.ReadSolutionFile(); solution.FullPath = solutionFullPath; return(solution); } }
/// <summary> /// Loads the solution from the specified stream. /// </summary> /// <param name="solutionFullPath">The solution full path.</param> /// <param name="stream">The stream.</param> /// <returns>Solution.</returns> public static Solution FromStream(string solutionFullPath, Stream stream) { using (var reader = new SolutionReader(stream)) { var solution = reader.ReadSolutionFile(); solution.FullPath = solutionFullPath; return solution; } }