Esempio n. 1
0
        internal static CustomAttribute Clone(CustomAttribute custattr, ImportContext context)
        {
            CustomAttribute ca = new CustomAttribute(context.Import(custattr.Constructor));

            custattr.CopyTo(ca);
            return(ca);
        }
Esempio n. 2
0
        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);
        }