Example #1
0
 public static Solution FromFile(string solutionFullPath)
 {
     using (var reader = new SolutionReader(solutionFullPath))
     {
         var solution = reader.ReadSolutionFile();
         solution.FullPath = solutionFullPath;
         return(solution);
     }
 }
Example #2
0
 public static Solution FromStream(string solutionFullPath, [NotNull] Stream stream)
 {
     using (var reader = new SolutionReader(stream))
     {
         var solution = reader.ReadSolutionFile();
         solution.FullPath = solutionFullPath;
         return(solution);
     }
 }
Example #3
0
 /// <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;
     }
 }