Exemplo n.º 1
0
        protected ContentTransformer(ContentTransformer other)
        {
            Guard.NotNull(other, nameof(other));

            this._Content   = other._Content;
            this._Morphings = other._Morphings?.Clone();
        }
Exemplo n.º 2
0
        protected ContentTransformer(ContentTransformer other)
        {
            Guard.NotNull(other, nameof(other));

            if (other._Content is ICloneable cloneable)
            {
                this._Content = cloneable.Clone();
            }
            else
            {
                this._Content = other._Content;
            }

            this._Morphings = other._Morphings?.Clone();
        }