Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RedBlueGames.BulkRename.TrimCharactersOperation"/> class.
 /// This is a clone constructor, copying the values from one to another.
 /// </summary>
 /// <param name="operationToCopy">Operation to copy.</param>
 public TrimCharactersOperation(TrimCharactersOperation operationToCopy)
 {
     this.NumFrontDeleteChars = operationToCopy.NumFrontDeleteChars;
     this.NumBackDeleteChars  = operationToCopy.NumBackDeleteChars;
 }
Пример #2
0
        /// <summary>
        /// Clone this instance.
        /// </summary>
        /// <returns>A clone of this instance</returns>
        public override BaseRenameOperation Clone()
        {
            var clone = new TrimCharactersOperation(this);

            return(clone);
        }