public CSharpResolvedAttribute(CppTypeResolveContext context, CppAttribute unresolved) { this.context = context; this.unresolved = unresolved; // Pretty much any access to the attribute checks the type first, so // we don't need to use lazy-loading for that. this.attributeType = unresolved.AttributeType.Resolve(context); }