Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileToSave"/> class
 /// with the specified file path and the new file name under which to save the file.
 /// </summary>
 /// <param name="srcPath">The current path to the existing file to be saved.</param>
 /// <param name="newName">The new file name including the extension.</param>
 /// <param name="fileType">The file type associated with this file.</param>
 public FileToSave(string srcPath, string newName, SupportedFileType fileType = null)
     : this(srcPath, fileType)
 {
     this.Name      = newName;
     this.Extension = GetExtension(srcPath);
 }