Inheritance: System.Collections.CollectionBase
Beispiel #1
0
 /// <summary>
 /// Adds the elements of a <see cref="CategoryCollection"/> to the end of the collection.
 /// </summary>
 /// <param name="items">The <see cref="CategoryCollection"/> to be added to the end of the collection.</param>
 public void AddRange(CategoryCollection items)
 {
     for (int i = 0; (i < items.Count); i = (i + 1))
     {
         Add(items[i]);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CategoryCollection"/> class
 /// with the specified <see cref="CategoryCollection"/> instance.
 /// </summary>
 public CategoryCollection(CategoryCollection value)
 {
     AddRange(value);
 }
Beispiel #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CategoryEnumerator"/> class
        /// with the specified <see cref="CategoryCollection"/>.
        /// </summary>
        /// <param name="arguments">The collection that should be enumerated.</param>
        internal CategoryEnumerator(CategoryCollection arguments)
        {
            IEnumerable temp = (IEnumerable)(arguments);

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