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 / .NET Framework / Remoting / June 2004

Tip: Looking for answers? Try searching our database.

Array marshaling

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gleb Holodov - 30 Jun 2004 10:50 GMT
Deat All!

I maybe missing something, but is there a way to control how arrays are
marshaled during remoting? I know, that since they're serializable and not
MBR, they will be marshaled by value, but will they be transported back to
the client? A server might change contents of an array, so remoting has no
means to decide whether it happened and should pack it into the return
message.
   So, my question is: is there a way to influence whether an array will or
won't be sent back to a client when remoting methods like these, and what is
the default behavior:

void Method( Array ar );
- or -
void Method( SomeClass[] ar );

   Thanks in advance,
   Gleb
jgauntz - 30 Jun 2004 13:25 GMT
You can use the ref and out method parameters.  The ref and out method parameters can be used for value types and for reference types that are serializable.  Using the ref parameter, the argument is marshaled in both directions, the out parameter goes from the server to the client, and using no parameter sedn the data to the server.

Hope this helps,

Jason Gauntz

> Deat All!
>
[quoted text clipped - 14 lines]
>     Thanks in advance,
>     Gleb
Gleb Holodov - 30 Jun 2004 15:07 GMT
Aha! Thank you, Jason, I felt there should be something like this!

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.