Ejemplo n.º 1
0
        /// <summary>
        /// Creates a copy of this object.
        /// </summary>
        /// <returns></returns>
        public FileSwitcher Clone()
        {
            FileSwitcher clone = new FileSwitcher();

            clone.NormalFile = this.NormalFile;
            clone.CustomFile = this.CustomFile;
            clone.TempFile   = this.TempFile;
            clone.FileType   = this.FileType;

            return(clone);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="switchableFile"></param>
 /// <returns></returns>
 /// <exception cref="System.ArgumentException">NormalFile, CustomFile, TempFile, or RelativeRoot contain
 /// invalid characters.</exception>
 /// <exception cref="System.ArgumentNullException">NormalFile, CustomFile, TempFile, or RelativeRoot
 /// are null.</exception>
 public static FileSwitcher AsFileSwitcher( this ISwitchableFile switchableFile )
 {
     FileSwitcher fileSwitcher = new FileSwitcher();
     fileSwitcher.NormalFile = switchableFile.ResolveNormalFile();
     fileSwitcher.CustomFile = switchableFile.ResolveCustomFile();
     fileSwitcher.TempFile = switchableFile.ResolveTempFile();
     fileSwitcher.FileType = switchableFile.FileType;
     return fileSwitcher;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates a copy of this object.
        /// </summary>
        /// <returns></returns>
        public FileSwitcher Clone()
        {
            FileSwitcher clone = new FileSwitcher();
            clone.NormalFile = this.NormalFile;
            clone.CustomFile = this.CustomFile;
            clone.TempFile = this.TempFile;
            clone.FileType = this.FileType;

            return clone;
        }