コード例 #1
0
        public static CodeAttribute2 GetCustomAttribute(this CodeElement2 cc, Type attrType)
        {
            var res = cc.GetCustomAttributes().FirstOrDefault(x => x.AsCodeElement().IsEqualToType(attrType));

            return(res);
        }