Hi,
I'm writing an application that will pass a relatively large amount of data between classes/functions.
In C++ it was more efficient to send a pointer to the object, e.g structure rather than passing the actual structure itself.
Is this true of C# also?
What is the best way to pass a large amount of data with different data types?
e.g object could contain some strings, doubles, bytes etc.
Regards
Macca
Krishnan LNPosted Feb 2, 2006, 3:58 AM
It is very effective to pass a data using reference which is also more secure.
james LastPosted Jan 30, 2006, 11:08 AM
Thanks for the reply.
The data is not completely defined yet and will be comprised of 5-6 data types including an arraylist of double.
The data in the arraylist will probably be accessed randomly as well as sequentially.
Regards
Macca
sudheer panwarPosted Jan 27, 2006, 7:32 AM
you can create a class with properites to get and set the data. then pass the object of this class instead of passing individual fields.
Zach SmithPosted Jan 23, 2006, 9:53 PM