Exemplo n.º 1
0
        public static ICollection GetProperties(ITypeDeclaration value, IVisibilityConfiguration visibility)
        {
            IPropertyDeclarationCollection properties = value.Properties;
            ICollection result;

            if (properties.Count > 0)
            {
                ArrayList arrayList = new ArrayList(0);
                foreach (object obj in properties)
                {
                    IPropertyDeclaration value2 = (IPropertyDeclaration)obj;
                    if (visibility == null || IsVisible(value2, visibility))
                    {
                        arrayList.Add(value2);
                    }
                }
                arrayList.Sort();
                result = arrayList;
            }
            else
            {
                result = new IPropertyDeclaration[0];
            }
            return(result);
        }
Exemplo n.º 2
0
 public virtual void VisitPropertyDeclarationCollection(IPropertyDeclarationCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         VisitPropertyDeclaration(value[i]);
     }
 }
Exemplo n.º 3
0
        public static ICollection GetProperties(ITypeDeclaration value, IVisibilityConfiguration visibility)
        {
            ArrayList list = new ArrayList(0);
            IPropertyDeclarationCollection properties = value.Properties;

            if (properties.Count > 0)
            {
                foreach (IPropertyDeclaration declaration in properties)
                {
                    if ((visibility == null) || IsVisible(declaration, visibility))
                    {
                        list.Add(declaration);
                    }
                }
                list.Sort();
            }
            return(list);
        }
Exemplo n.º 4
0
 public static bool Compare(this IPropertyDeclarationCollection source, IPropertyDeclarationCollection n, Func<IPropertyDeclaration, IPropertyDeclaration, Action<string, string>, bool> checkitem, Action<string, string> errAct)
 {
     return Compare<IPropertyDeclaration>(source,n,checkitem,errAct);
 }
Exemplo n.º 5
0
 public static bool Compare(this IPropertyDeclarationCollection source, IPropertyDeclarationCollection n, Func<IPropertyDeclaration, IPropertyDeclaration, bool> checkitem)
 {
     return Compare<IPropertyDeclaration>(source,n,checkitem);
 }
Exemplo n.º 6
0
 public static bool Compare(this IPropertyDeclarationCollection source, IPropertyDeclarationCollection n)
 {
     return Compare<IPropertyDeclaration>(source,n);
 }
Exemplo n.º 7
0
 public static bool Compare(this IPropertyDeclarationCollection source, IPropertyDeclarationCollection n, Func <IPropertyDeclaration, IPropertyDeclaration, Action <string, string>, bool> checkitem, Action <string, string> errAct)
 {
     return(Compare <IPropertyDeclaration>(source, n, checkitem, errAct));
 }
Exemplo n.º 8
0
 public static bool Compare(this IPropertyDeclarationCollection source, IPropertyDeclarationCollection n, Func <IPropertyDeclaration, IPropertyDeclaration, bool> checkitem)
 {
     return(Compare <IPropertyDeclaration>(source, n, checkitem));
 }
Exemplo n.º 9
0
 public static bool Compare(this IPropertyDeclarationCollection source, IPropertyDeclarationCollection n)
 {
     return(Compare <IPropertyDeclaration>(source, n));
 }
Exemplo n.º 10
0
 public virtual void VisitPropertyDeclarationCollection(IPropertyDeclarationCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         this.VisitPropertyDeclaration(value[i]);
     }
 }
Exemplo n.º 11
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;
        }
Exemplo n.º 12
0
 private void InsituTransformPropertyDeclarationCollection(IPropertyDeclarationCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         value[i] = this.TransformPropertyDeclaration(value[i]);
     }
 }