/// <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); }
/// <summary> /// Creates a new instance of a Solution /// </summary> private Solution() { _blocks = new PersistenceBlocks(this); }