What is marshaling and what is use of it?

 Posted by Rajeshatkiit on 12/16/2015 | Category: C# Interview questions | Views: 2055 | Points: 40

Marshaling is process of converting unmanaged data type to managed data type.
Let suppose you are using unmanaged code. Data type is different in different languages.
For example int data type in C# is Int32 and it is 32 bit.
But windows API has INT as integer data type. when we marshal Int32 to INT then we just change the type not data.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response