Example #1
0
        public static void CopyCustomAttributes(ICustomAttributeProvider source, ICustomAttributeProvider target, ReferenceResolver resolver)
        {
            if (!source.HasCustomAttributes)
                return;

            foreach (var attribute in source.CustomAttributes)
                target.InjectCustomAttribute(attribute, resolver);
        }