What is the difference between warning codes cs0618 and cs0612

前端 未结 1 395
野的像风
野的像风 2021-01-17 10:34

I have seen both of the following warning codes being thrown for utilization of code marked obsolete.

cs0618 and cs0612.

0618 is Level 2 and 0612 is level

相关标签:
1条回答
  • 2021-01-17 10:59

    I think the difference is that one contains a message and the other doesn't.

    [Obsolete]                                  // CS0612
    [Obsolete("Use newMethod instead", false)]  // CS0618
    [Obsolete("Use newMethod instead", true)]   // CS0619
    
    0 讨论(0)
提交回复
热议问题