bool IsObsolete(Namescope scope) { do { scope.AssignAttributes(); var entity = scope as IEntity; if (entity != null && entity.HasAttribute(Essentials.ObsoleteAttribute)) { return(true); } scope = scope.Parent; } while (scope != null); return(false); }