IsHidden parameter in excelDNA attributes doesn't take a dynamic Values i.e. true/flase at runtime

Sep 29, 2015 at 5:24 AM
I have a requirement to load only required funcitons on the basis of some condition which wil be checked through database.

I have created a custon function in c# to return the bool value but i cannot pass to the IsHidden= , becuase it says

Error 1323 An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type

Any alternate i can achive this?

Help would be appriciated.