C#: Difference between implicit bool cast and operator true/false

前端 未结 0 736
逝去的感伤
逝去的感伤 2021-02-04 17:51

I am trying to understand the usage of overloading the true/false operator and I stumbled upon the following behaviour:

public class TestClass
{
    public int X          


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