Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default marshalling?

Status
Not open for further replies.

cfprg

Programmer
Apr 14, 2004
38
US

What is default marshalling in .NET?
 
Microsoft said:
Marshalling
The .NET framework has defined a common type system (CTS), which supports a set of data types
used in most modern programming languages. Explicit marshalling should be performed when
arguments and return values exchanged between managed and unmanaged code have a non-value
type data representation [11]. The .NET framework provides an interoperability marshaller to
convert data between managed and unmanaged environments.

Isomorphic data types
Data types that have similar data representation in both managed and unmanaged code are called
isomorphic data types. The marshalling is automatic and does not need any special handling or
conversion by the programmer when the data is passed between managed and unmanaged code.

Non-isomorphic data types
Data types that have different data representations in managed and unmanaged code are called
non-isomorphic data types. If non-isomorphic data types are used in unmanaged code, marshalling
is required to exchange data in the correct formats that can be understood by managed and
unmanaged code. Some of the most commonly marshaled data types are listed in the following
table.

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top