public void CustomAttribute(Int32 numberIterations) { for (int i = 0; i < numberIterations; ++i) { object o = new MarkedWithAttribute(); } }
public void CustomAttribute(Int32 numberIterations) { for (int i = 0; i < numberIterations; ++i) { object o = new MarkedWithAttribute(); object[] atts = o.GetType().GetCustomAttributes(typeof(MarkedAttribute), false); if (atts.Length != 0) { o.GetHashCode(); } } }