/// <inheritdoc/> protected bool Equals(ImplementationBase other) { if (other == null) { return(false); } return(base.Equals(other) && other.ID == ID && other.LocalPath == LocalPath && other.ManifestDigest == ManifestDigest); }
//--------------------// #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; }
/// <inheritdoc/> protected bool Equals(ImplementationBase other) { if (other == null) return false; return base.Equals(other) && other.ID == ID && other.LocalPath == LocalPath && other.ManifestDigest == ManifestDigest; }