How to throw a compiler error if more than one member has the same Attribute

前端 未结 4 1264
南笙
南笙 2020-12-06 05:44

Simple question, how do you force the C# compiler to throw a compilation error.


Update: Perhaps it\'s better to use an Assert.Fail() instead?

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