예제 #1
0
		/// <summary>
		/// Adds the contents of another <see cref="ModuleInfoCollection">ModuleInfoCollection</see> to the end of the collection.
		/// </summary>
		/// <param name="value">A <see cref="ModuleInfoCollection">ModuleInfoCollection</see> containing the Components to add to the collection. </param>
		public void AddRange(ModuleInfoCollection value) 
		{
			for (int i = 0;	(i < value.Count); i = (i +	1))	
			{
				this.Add((ModuleInfo)value.List[i]);
			}
		}
 /// <summary>
 /// Adds the contents of another <see cref="ModuleInfoCollection">ModuleInfoCollection</see> to the end of the collection.
 /// </summary>
 /// <param name="value">A <see cref="ModuleInfoCollection">ModuleInfoCollection</see> containing the Components to add to the collection. </param>
 public void AddRange(ModuleInfoCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add((ModuleInfo)value.List[i]);
     }
 }
예제 #3
0
		/// <summary>
		/// Initializes a new instance of the <see cref="ModuleInfoCollection">ModuleInfoCollection</see> class containing the elements of the specified source collection.
		/// </summary>
		/// <param name="value">A <see cref="ModuleInfoCollection">ModuleInfoCollection</see> with which to initialize the collection.</param>
		public ModuleInfoCollection(ModuleInfoCollection value)	
		{
			this.AddRange(value);
		}
예제 #4
0
			/// <summary>
			/// Initializes a new instance of the <see cref="ModuleInfoCollectionEnumerator">ModuleInfoCollectionEnumerator</see> class referencing the specified <see cref="ModuleInfoCollection">ModuleInfoCollection</see> object.
			/// </summary>
			/// <param name="mappings">The <see cref="ModuleInfoCollection">ModuleInfoCollection</see> to enumerate.</param>
			public ModuleInfoCollectionEnumerator(ModuleInfoCollection mappings)
			{
				_temp =	((IEnumerable)(mappings));
				_enumerator = _temp.GetEnumerator();
			}
 /// <summary>
 /// Initializes a new instance of the <see cref="ModuleInfoCollection">ModuleInfoCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="ModuleInfoCollection">ModuleInfoCollection</see> with which to initialize the collection.</param>
 public ModuleInfoCollection(ModuleInfoCollection value)
 {
     this.AddRange(value);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ModuleInfoCollectionEnumerator">ModuleInfoCollectionEnumerator</see> class referencing the specified <see cref="ModuleInfoCollection">ModuleInfoCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="ModuleInfoCollection">ModuleInfoCollection</see> to enumerate.</param>
 public ModuleInfoCollectionEnumerator(ModuleInfoCollection mappings)
 {
     _temp       = ((IEnumerable)(mappings));
     _enumerator = _temp.GetEnumerator();
 }