Exemplo n.º 1
0
 /// <inheritdoc/>
 protected bool Equals(ImplementationBase other)
 {
     if (other == null)
     {
         return(false);
     }
     return(base.Equals(other) && other.ID == ID && other.LocalPath == LocalPath && other.ManifestDigest == ManifestDigest);
 }
Exemplo n.º 2
0
        //--------------------//

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