Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deprecate certain methods/types

To prevent using some members (or types) is there a way to mark them as obsolete (and sometimes in the future remove them completely).

But is there a way to deprecate members (or types) of the compiled third-party assemblies? Or, at least, to make sure (or to issue a warning) when they are used?

like image 584
Michael Damatov Avatar asked Aug 16 '26 14:08

Michael Damatov


1 Answers

Have you considered crafting a custom Code Analysis/FxCop rule?

like image 183
Daniel Pratt Avatar answered Aug 18 '26 20:08

Daniel Pratt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!