generic lists and .NET Remoting

J

Jeff

..NET 2.0

Is generic lists faster then tradional lists when sending over a collection
of objects (value by reference) in .NET remoting.

Lets say if a list of object should be sent from a server to the client.
Whould it be better to use generic lists?

Jeff
 
N

Nicholas Paldino [.NET/C# MVP]

I would say that whether or not a list is generic isn't going to affect
things either way.

The reason is that you have two scenarios when you are using remoting.
You are either marshalling the object across the wire (in which case
serialization is used) or you are making the call into the app domain
(marshal by ref object). When you serialize an object, generics doesn't
really help with that process, since reflection is used (in most general
cases) to determine the members to serialize.

With a marshal by ref object, where the call is made into the app domain
that created the object, it doesn't matter either, because it's just the
call that is marshalled into the app domain, not the whole object instance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top