/// <summary>
		/// Adds the elements of another PropertyDeclarationCollection to the end of this PropertyDeclarationCollection.
		/// </summary>
		/// <param name="items">
		/// The PropertyDeclarationCollection whose elements are to be added to the end of this PropertyDeclarationCollection.
		/// </param>
		public virtual void AddRange(PropertyDeclarationCollection items)
		{
			foreach (PropertyDeclaration item in items)
			{
				this.List.Add(item);
			}
		}
 /// <summary>
 /// Adds the elements of another PropertyDeclarationCollection to the end of this PropertyDeclarationCollection.
 /// </summary>
 /// <param name="items">
 /// The PropertyDeclarationCollection whose elements are to be added to the end of this PropertyDeclarationCollection.
 /// </param>
 public virtual void AddRange(PropertyDeclarationCollection items)
 {
     foreach (PropertyDeclaration item in items)
     {
         this.List.Add(item);
     }
 }
コード例 #3
0
 private static void Strip(PropertyDeclarationCollection properties)
 {
     for (int i = properties.Count - 1; i >= 0; i--)
     {
         var property = (BuildProperty)properties[i];
         if (property.Strip)
         {
             properties.RemoveAt(i);
         }
     }
 }
		/// <summary>
		/// Initializes a new instance of the PropertyDeclarationCollection class, containing elements
		/// copied from another instance of PropertyDeclarationCollection
		/// </summary>
		/// <param name="items">
		/// The PropertyDeclarationCollection whose elements are to be added to the new PropertyDeclarationCollection.
		/// </param>
		public PropertyDeclarationCollection(PropertyDeclarationCollection items)
		{
			this.AddRange(items);
		}
			public Enumerator(PropertyDeclarationCollection collection)
			{
				this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
			}
コード例 #6
0
ファイル: ExtnGen.cs プロジェクト: ScottWeinstein/ILUnMerge
 public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n, Func<PropertyDeclaration, PropertyDeclaration, Action<string, string>, bool> checkitem, Action<string, string> errAct)
 {
     return Compare<PropertyDeclaration>(source,n,checkitem,errAct);
 }
コード例 #7
0
ファイル: ExtnGen.cs プロジェクト: ScottWeinstein/ILUnMerge
 public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n, Func<PropertyDeclaration, PropertyDeclaration, bool> checkitem)
 {
     return Compare<PropertyDeclaration>(source,n,checkitem);
 }
コード例 #8
0
ファイル: ExtnGen.cs プロジェクト: ScottWeinstein/ILUnMerge
 public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n)
 {
     return Compare<PropertyDeclaration>(source,n);
 }
 /// <summary>
 /// Initializes a new instance of the PropertyDeclarationCollection class, containing elements
 /// copied from another instance of PropertyDeclarationCollection
 /// </summary>
 /// <param name="items">
 /// The PropertyDeclarationCollection whose elements are to be added to the new PropertyDeclarationCollection.
 /// </param>
 public PropertyDeclarationCollection(PropertyDeclarationCollection items)
 {
     this.AddRange(items);
 }
 public Enumerator(PropertyDeclarationCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }
コード例 #11
0
ファイル: ExtnGen.cs プロジェクト: ScottWeinstein/ILUnMerge
 public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n, Func <PropertyDeclaration, PropertyDeclaration, Action <string, string>, bool> checkitem, Action <string, string> errAct)
 {
     return(Compare <PropertyDeclaration>(source, n, checkitem, errAct));
 }
コード例 #12
0
ファイル: ExtnGen.cs プロジェクト: ScottWeinstein/ILUnMerge
 public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n, Func <PropertyDeclaration, PropertyDeclaration, bool> checkitem)
 {
     return(Compare <PropertyDeclaration>(source, n, checkitem));
 }
コード例 #13
0
ファイル: ExtnGen.cs プロジェクト: ScottWeinstein/ILUnMerge
 public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n)
 {
     return(Compare <PropertyDeclaration>(source, n));
 }
コード例 #14
0
        public virtual IPropertyDeclarationCollection TransformPropertyDeclarationCollection(IPropertyDeclarationCollection properties)
        {
            IPropertyDeclaration[] array = new IPropertyDeclaration[properties.Count];
            for (int i = 0; i < properties.Count; i++)
            {
                array[i] = this.TransformPropertyDeclaration(properties[i]);
            }

            IPropertyDeclarationCollection target = new PropertyDeclarationCollection();
            target.AddRange(array);
            return target;
        }