예제 #1
0
 public static Solution FromFile(string solutionFullPath)
 {
     using (var reader = new SolutionReader(solutionFullPath))
     {
         var solution = reader.ReadSolutionFile();
         solution.FullPath = solutionFullPath;
         return(solution);
     }
 }
예제 #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);
     }
 }
예제 #3
0
파일: Solution.cs 프로젝트: cg123/xenko
 /// <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;
     }
 }