Can you add a preprocessor directive for a C# version?

前端 未结 0 663
情深已故
情深已故 2021-01-06 03:25

Is there a way to add a preprocessor directive that compares the C# version used by the compiler?

For example :

public T MyMethod()
{
#if CS_7         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题