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