Example #1
0
 /// <summary>
 /// Adds the elements of a <see cref="PackageCollection"/> to the end of the collection.
 /// </summary>
 /// <param name="items">The <see cref="PackageCollection"/> to be added to the end of the collection.</param> 
 public void AddRange(PackageCollection items) {
     for (int i = 0; (i < items.Count); i = (i + 1)) {
         Add(items[i]);
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PackageCollection"/> class
 /// with the specified <see cref="PackageCollection"/> instance.
 /// </summary>
 public PackageCollection(PackageCollection value) {
     AddRange(value);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PackageCollection"/> class
 /// with the specified <see cref="PackageCollection"/> instance.
 /// </summary>
 public PackageCollection(PackageCollection value)
 {
     AddRange(value);
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PackageEnumerator"/> class
 /// with the specified <see cref="PackageCollection"/>.
 /// </summary>
 /// <param name="arguments">The collection that should be enumerated.</param>
 internal PackageEnumerator(PackageCollection arguments) {
     IEnumerable temp = (IEnumerable) (arguments);
     _baseEnumerator = temp.GetEnumerator();
 }
Example #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PackageEnumerator"/> class
        /// with the specified <see cref="PackageCollection"/>.
        /// </summary>
        /// <param name="arguments">The collection that should be enumerated.</param>
        internal PackageEnumerator(PackageCollection arguments)
        {
            IEnumerable temp = (IEnumerable)(arguments);

            _baseEnumerator = temp.GetEnumerator();
        }