DataGridView:通过值还是引用传递? [英] DataGridView: Pass by Value or Reference?
本文介绍了DataGridView:通过值还是引用传递?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我认为DataGridView就是内存消耗。通过值传递datagridview还是通过引用传递更好?
I think of DataGridView's as being memory hogs. Is it better to pass by value a datagridview or by reference? Should it even be passed at all?
推荐答案
从值的角度来看,按值或引用进行传递都无关紧要,因为DataGridView是引用类型,而不是值类型。
Passing it by value or reference isn't going to matter from a memory stand point, because the DataGridView is a reference type, not a value type.
这篇关于DataGridView:通过值还是引用传递?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文