摘要
装箱和拆箱是.NET Framework中一个重要的概念,如果使用不当,开发出来的系统性能将受到较大影响,并且许多初学者在这个概念上产生疑惑。本文在深入分析装箱/拆箱原理的基础上,介绍了使用泛型来避免不必要的装箱/拆箱,以期对.NET开发人员有一定的参考价值。
Boxing and Unboxing is an important concept of.NET Framework,If used improperly,the system performance will be severely affected,and Many beginners will be puzzled at the concept.This paper analys the concept of boxing/unboxing first,then introduced the use of generics to avoid unnecessary boxing / unboxing,sothat it canhave a certain reference value for.NET developers.
出处
《安阳师范学院学报》
2010年第5期60-62,共3页
Journal of Anyang Normal University