示例#1
0
		/// <summary>
		///     <para>
		///       Initializes a new instance of <see cref='.PropertyCollection'/> based on another <see cref='.PropertyCollection'/>.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///       A <see cref='.PropertyCollection'/> from which the contents are copied
		/// </param>
		public PropertyCollection(PropertyCollection value) 
		{
			this.AddRange(value);
		}
示例#2
0
			public PropertyInstanceEnumerator(PropertyCollection mappings) 
			{
				this.temp = ((IEnumerable)(mappings));
				this.baseEnumerator = temp.GetEnumerator();
			}
示例#3
0
		/// <summary>
		///     <para>
		///       Adds the contents of another <see cref='.PropertyCollection'/> to the end of the collection.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///    A <see cref='.PropertyCollection'/> containing the objects to add to the collection.
		/// </param>
		/// <returns>
		///   <para>None.</para>
		/// </returns>
		/// <seealso cref='.PropertyCollection.Add'/>
		public void AddRange(PropertyCollection value) 
		{
			for (int i = 0; (i < value.Count); i = (i + 1)) 
			{
				this.Add(value[i]);
			}
		}
示例#4
0
文件: User.cs 项目: emtees/old-code
		public User()
		{
			_Roles=new StringCollection();
			_Properties=new PropertyCollection();
			_Active=true;
		}
示例#5
0
 /// <summary>
 ///     <para>
 ///       Initializes a new instance of <see cref='.PropertyCollection'/> based on another <see cref='.PropertyCollection'/>.
 ///    </para>
 /// </summary>
 /// <param name='value'>
 ///       A <see cref='.PropertyCollection'/> from which the contents are copied
 /// </param>
 public PropertyCollection(PropertyCollection value)
 {
     this.AddRange(value);
 }
示例#6
0
 public PropertyInstanceEnumerator(PropertyCollection mappings)
 {
     this.temp           = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }