//--------------------// #region Clone /// <summary> /// Copies all known values from one instance to another. Helper method for instance cloning. /// </summary> protected static void CloneFromTo([NotNull] ImplementationBase from, [NotNull] ImplementationBase to) { #region Sanity checks if (from == null) { throw new ArgumentNullException("from"); } if (to == null) { throw new ArgumentNullException("to"); } #endregion Element.CloneFromTo(from, to); to.ID = from.ID; to.LocalPath = from.LocalPath; to.ManifestDigest = from.ManifestDigest; }