Example #1
0
        static public bool CheckAndAddCustomAttributeOfType(this MethodDefinition item, TypeReference type)
        {
            if (item.HasCustomAttributeOfType(type))
            {
                return(true);
            }

            item.AddCustomAttributeOfType(type);
            return(false);
        }