/// <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); } }
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(); }
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); }
public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n, Func<PropertyDeclaration, PropertyDeclaration, bool> checkitem) { return Compare<PropertyDeclaration>(source,n,checkitem); }
public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n) { return Compare<PropertyDeclaration>(source,n); }
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)); }
public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n, Func <PropertyDeclaration, PropertyDeclaration, bool> checkitem) { return(Compare <PropertyDeclaration>(source, n, checkitem)); }
public static bool Compare(this PropertyDeclarationCollection source, PropertyDeclarationCollection n) { return(Compare <PropertyDeclaration>(source, n)); }
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; }