Does calling a method on a value type result in boxing in .NET?

后端 未结 4 2015
渐次进展
渐次进展 2020-12-05 04:38

I was just participating in Stack Overflow question Is everything in .NET an object?.

And one poster (in comments of accepted answer) seemed to think that p

4条回答
  •  自闭症患者
    2020-12-05 05:15

    I believe that calling ToString, Equals and Gethashcode result in boxing if the structure does not override the methods.

提交回复
热议问题