示例#1
0
        /// <summary>
        /// Returns a deep copy of this instance.
        /// </summary>
        /// <returns></returns>
        public override ValueBindingModel Clone()
        {
            var clone = new MultiValueBindingModel();

            CopyTo(clone);

            return(clone);
        }
示例#2
0
        private void CopyTo(MultiValueBindingModel target)
        {
            base.CopyTo(target);

            target.Bindings.AddRange(
                from binding in this.Bindings
                select(SingleValueBindingModel) binding.Clone());
        }