private bool ElementCachesAttributes(XmlILConstructInfo info) { // Attributes will be cached if namespaces might be constructed after the attributes return info.MightHaveDuplicateAttributes || info.MightHaveNamespacesAfterAttributes; }