How to throw compilation error from an attribute?

前端 未结 3 1871
北荒
北荒 2021-01-12 11:12

there are attributes in .NET (e.g. ObsoleteAttribute) which are able to prevent compilation or at least throw compile time warnings depending on their configuration.

3条回答
提交回复
热议问题