private static Description CreateDescription(Type type) { Description d = new Description(type); foreach(IDescriptionRefiner refiner in type.GetCustomAttributes(typeof(IDescriptionRefiner), true)) refiner.Describe(type, d); return d; }
void IDescriptionRefiner.Describe(System.Type entityType, Description description) { description.IsPage = IsPage; description.IconUrl = IconUrl; }