public virtual bool IsIterCreator(ICustomAttributeProvider provider) { object[] attrs = GetCustomAttributes(provider, typeof(IterCreatorAttribute)); return attrs != null && attrs.Length > 0; }