Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of a Solution by parsing a existing one
 /// from disk.
 /// </summary>
 /// <param name="filePath"></param>
 private Solution(string filePath)
 {
     _blocks    = new PersistenceBlocks(this);
     _extension = Path.GetExtension(filePath);
     // Make sure it's supported
     ValidateSolutionExtension(_extension);
     _name = Path.GetFileNameWithoutExtension(filePath);
     Parse(filePath);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of a Solution
 /// </summary>
 private Solution()
 {
     _blocks = new PersistenceBlocks(this);
 }