示例#1
0
        /// <summary>
        /// Creates a copy of this connection object with a new <see cref="Guid"/> value.
        /// </summary>
        /// <returns>A new copy of this connection object with its <see cref="Guid"/> property initialized to a new value.</returns>
        public virtual object Clone()
        {
            object clonedConnection = SerializationUtilities.Clone(this);

            ((BaseConnection)clonedConnection).ParentFolder = null;
            ((BaseConnection)clonedConnection).Guid         = Guid.NewGuid();

            return(clonedConnection);
        }