Skip to content

What is the meaning of "unmanaged representation"? #100737

Answered by jkotas
Korporal asked this question in Q&A
Discussion options

You must be logged in to vote

"unmanaged representation" of a struct. Can anyone explain precisely what this means?

It is explained in https://learn.microsoft.com/en-us/dotnet/framework/interop/interop-marshalling

does the managed "representation" differ from the unmanaged?

Yes, the managed representation can differ from unmanaged representation. Types with identical managed and unmanaged representation are called blittable types: https://learn.microsoft.com/en-us/dotnet/framework/interop/blittable-and-non-blittable-types .

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
9 replies
@Korporal
Comment options

@CyrusNajmabadi
Comment options

@CyrusNajmabadi
Comment options

@jkotas
Comment options

@CyrusNajmabadi
Comment options

Answer selected by Korporal
Comment options

You must be logged in to vote
2 replies
@CyrusNajmabadi
Comment options

@CyrusNajmabadi
Comment options

Comment options

You must be logged in to vote
1 reply
@CyrusNajmabadi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants