コード例 #1
0
        public override ReferenceSource Clone()
        {
            ReferenceVsNetSource source = new ReferenceVsNetSource(this);

            this.Clone(source);

            if (_targetIdentifier != null)
            {
                source._targetIdentifier = String.Copy(_targetIdentifier);
            }
            if (_listItems != null)
            {
                source._listItems = _listItems.Clone();
            }

            return(source);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReferenceVsNetSource"/> class
 /// with parameters copied from the specified instance of the
 /// <see cref="ReferenceVsNetSource"/> class, a copy constructor.
 /// </summary>
 /// <param name="source">
 /// An instance of the <see cref="ReferenceVsNetSource"/> class from which the
 /// initialization parameters or values will be copied.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// If the parameter <paramref name="source"/> is <see langword="null"/>.
 /// </exception>
 public ReferenceVsNetSource(ReferenceVsNetSource source)
     : base(source)
 {
     _listItems        = source._listItems;
     _targetIdentifier = source._targetIdentifier;
 }