For more information, see boxing and Unboxing.
有关更多信息,请参见装箱和取消装箱。
What we'd really like to see would be automatic boxing and unboxing of primitive types, similar to what is done in C# (except better).
我们真正想看到的是,基本类型可以自动进行包装(boxing)和解包装(unboxing),类似于用 C# 所进行的操作(或者比后者更好)。
Boxing and unboxing conversions Warns about automatic boxing operations, which may impact performance, and breaks assumptions about object identity for type wrapper objects.
boxing and unboxing conversions对自动装箱操作发出警告(装箱操作可能影响性能),并且不再对类型包装对象做对象身份的假设。
应用推荐