Вопрос

Does anyone know a simple way to get the attribute of an obsolete marked methods with NDepend?

Obsolete["This is outdated"] //TODO, I want the string!!

So any ideas on how to get the string using NDepend?

Это было полезно?

Решение

With NDepend you can get the attribute type,the methods/types/assemblies... tagged with the attribute, but you cannot get the string in the attribute. Much better than reflection, we'd advise using the framework Mono.Cecil for that.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top