Use cases for boxing a value type in C#?

后端 未结 9 1123
既然无缘
既然无缘 2021-02-05 23:36

There are cases when an instance of a value type needs to be treated as an instance of a reference type. For situations like this, a value

9条回答
  •  醉梦人生
    2021-02-05 23:53

    I think a good example of boxing in c# occurs in the non-generic collections like ArrayList.

提交回复
热议问题