internal Object Evaluate(bool getForProperty) { int n = this.list.Count; ArrayList attrValues = new ArrayList(n); for (int i = 0; i < n; i++) { CustomAttribute ca = (CustomAttribute)this.list[i]; if (ca == null) { continue; } if (ca.raiseToPropertyLevel) { if (!getForProperty) { continue; } } else if (getForProperty) { continue; } attrValues.Add(ca.Evaluate()); } Object[] result = new Object[attrValues.Count]; attrValues.CopyTo(result); return(result); }
internal object Evaluate(bool getForProperty) { int count = this.list.Count; ArrayList list = new ArrayList(count); for (int i = 0; i < count; i++) { CustomAttribute attribute = (CustomAttribute)this.list[i]; if (attribute == null) { continue; } if (attribute.raiseToPropertyLevel) { if (getForProperty) { goto Label_003C; } continue; } if (getForProperty) { continue; } Label_003C: list.Add(attribute.Evaluate()); } object[] array = new object[list.Count]; list.CopyTo(array); return(array); }