internal static CustomAttribute Clone(CustomAttribute custattr, ImportContext context) { CustomAttribute ca = new CustomAttribute(context.Import(custattr.Constructor)); custattr.CopyTo(ca); return(ca); }
public bool Resolve() { if (Resolved) { return(true); } ReflectionReader r = m_ctor.DeclaringType.Module.Controller.Reader; CustomAttribute newCa = r.GetCustomAttribute(m_ctor, Blob, true); if (!newCa.Resolved) { return(false); } newCa.CopyTo(this); return(true); }