Inheritance: IList, IEnumerable
Exemplo n.º 1
0
 /// <summary>
 /// Adds the items of a <see cref="ModuleCollection"/> to the end of the collection.
 /// </summary>
 /// <param name="items">The <see cref="ModuleCollection"/> to be added to the end of the collection.</param>
 public void AddRange(ModuleCollection items)
 {
     for (int i = 0; (i < items.Count); i = (i + 1))
     {
         Add(items[i]);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModuleEnumerator"/> class
 /// with the specified <see cref="ModuleCollection"/>.
 /// </summary>
 /// <param name="arguments">The collection that should be enumerated.</param>
 internal ModuleEnumerator(ModuleCollection arguments)
 {
     IEnumerable temp = (IEnumerable) (arguments);
     _baseEnumerator = temp.GetEnumerator();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Adds the items of a <see cref="ModuleCollection"/> to the end of the collection.
 /// </summary>
 /// <param name="items">The <see cref="ModuleCollection"/> to be added to the end of the collection.</param> 
 public void AddRange(ModuleCollection items)
 {
     for (int i = 0; (i < items.Count); i = (i + 1)) {
         Add(items[i]);
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ModuleEnumerator"/> class
        /// with the specified <see cref="ModuleCollection"/>.
        /// </summary>
        /// <param name="arguments">The collection that should be enumerated.</param>
        internal ModuleEnumerator(ModuleCollection arguments)
        {
            IEnumerable temp = (IEnumerable)(arguments);

            _baseEnumerator = temp.GetEnumerator();
        }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModuleSet" /> class.
 /// </summary>
 public ModuleSet()
 {
     _modules = new ModuleCollection(this);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModuleSet" /> class.
 /// </summary>
 public ModuleSet() {
     _modules = new ModuleCollection(this);
 }