IsExpandoAttribute() private method

private IsExpandoAttribute ( ) : bool
return bool
Beispiel #1
0
 internal bool ContainsExpandoAttribute() //Use only before partial evaluation has been done
 {
     for (int i = 0, n = this.list.Count; i < n; i++)
     {
         CustomAttribute ca = (CustomAttribute)this.list[i];
         if (ca == null)
         {
             continue;
         }
         if (ca.IsExpandoAttribute())
         {
             return(true);
         }
     }
     return(false);
 }
        internal bool ContainsExpandoAttribute()
        {
            int num   = 0;
            int count = this.list.Count;

            while (num < count)
            {
                CustomAttribute attribute = (CustomAttribute)this.list[num];
                if ((attribute != null) && attribute.IsExpandoAttribute())
                {
                    return(true);
                }
                num++;
            }
            return(false);
        }