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.
boxingand unboxing conversions对自动装箱操作发出警告(装箱操作可能影响性能),并且不再对类型包装对象做对象身份的假设。
For more information, see boxing and Unboxing.
有关更多信息,请参见装箱和取消装箱。
When the data moves from value types to reference types its termed as 'Boxing' and the vice versa is termed as 'UnBoxing'.
当把一个“数据”从值类型转换成引用类型的时候,就叫做“装箱”,反之叫做“拆箱”。
When the data moves from value types to reference types its termed as 'Boxing' and the vice versa is termed as 'UnBoxing'.
当把一个“数据”从值类型转换成引用类型的时候,就叫做“装箱”,反之叫做“拆箱”。
应用推荐