Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

generic lists and .NET Remoting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 31 Jul 2007 12:38 GMT
.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
Nicholas Paldino [.NET/C# MVP] - 31 Jul 2007 15:26 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> .NET 2.0
>
[quoted text clipped - 5 lines]
>
> Jeff

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.