Copy() public method

Clone
public Copy ( ) : TemplDoc
return TemplDoc
Beispiel #1
0
        /// <summary>
        /// Stores a named document state
        /// </summary>
        /// <param name="document"></param>
        /// <param name="name"></param>
        public void AddState(TemplDoc document, string name)
        {
            var state = document.Copy();

            state.Filename = $"{States.Count}-{name}";
            States.Add(state);
        }
Beispiel #2
0
 /// <summary>
 /// Stores a named document state
 /// </summary>
 /// <param name="document"></param>
 /// <param name="name"></param>
 public void AddState(TemplDoc document, string name)
 {
     var state = document.Copy();
     state.Filename = $"{States.Count}-{name}";
     States.Add(state);
 }