Block specific methods / types

To prevent the use of some elements (or types), is there a way to mark them as obsolete (and sometimes delete them completely in the future).

But is there a way to judge members (or types) of compiled third-party assemblies? Or at least to (or give a warning) when they are used?

+3
source share
4 answers

Have you considered creating a custom code analysis rule / FxCop rule ?

+3
source

As you can tell from the answers so far, there is no great, built-in way to do this.

+2
0
source

I assume that you can subclass the entire library (or at least the parts you use) and then discount them in any way.

0
source

Source: https://habr.com/ru/post/1705159/


All Articles