Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Object Marshalling in C#

This topic is 5151 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, guys. I''m having trouble understanding how marshalling works in C#. To my understanding, it''s kinda like Java in that reference types like classes are passed by reference and that value types such as primitives and structs are passed by value. But then, there are things like ref and out. Do you only need to use those to "return" a value type? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Marhsalling is used when interoperating with native calls to map managed types to compatible unmanaged types, and in .Net remoting. There are other purposes as well, a google search will yield many of them. With that in mind, can you clarify the context of your question? It might help with getting responses.

Share this post


Link to post
Share on other sites
Oh, I''m sorry, I was under the impression that passing objects to methods was also called marshalling. So I guess what I''m trying to ask is how passing by reference/value to methods handled in C# ???

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!