Пример #1
0
        public override BuildGroupSource Clone()
        {
            ImportGroupSource source = new ImportGroupSource(this);

            this.Clone(source);

            if (_listImports != null)
            {
                source._listImports = _listImports.Clone();
            }

            return(source);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImportGroupSource"/> class
 /// with parameters copied from the specified instance of the
 /// <see cref="ImportGroupSource"/> class, a copy constructor.
 /// </summary>
 /// <param name="source">
 /// An instance of the <see cref="ImportGroupSource"/> 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 ImportGroupSource(ImportGroupSource source)
     : base(source)
 {
     _listImports = source._listImports;
 }