Using an ObjectCollection as a parameter create a new Control?

Posted by Luis on Stack Overflow See other posts from Stack Overflow or by Luis
Published on 2009-08-19T15:32:33Z Indexed on 2010/03/14 4:05 UTC
Read the original article Hit count: 226

Filed under:
|
|

I was using something like

public int Test(System.Windows.Forms.ListBox.ObjectCollection Colecction) { }

With this I want to pass just the ObjectCollection of the control, to sort, add and delete elements without passing the entire control, but someone told me that, this way of calling the collection, actualy, create an entire ListBox, making it a worst decition, than, passing a ListBox as a parameter.

Is it true? An if, what's the best way of working whit the collection?

© Stack Overflow or respective owner

Related posts about c#

Related posts about controls