---
title: "Discussion on \"How Glass reconstructs a native interop struct\" | Hashnode"
description: "Discussion on \"How Glass reconstructs a native interop struct\". A P/Invoke struct carries a contract that is not written down anywhere in the C# you see. [StructLayout(LayoutKind.Sequential, Pack = 1)] and a few [MarshalAs(...)] attributes decide, down to the byte"
url: "https://hashnode.com/posts/how-glass-reconstructs-a-native-interop-struct/6afb8d78adde95a838da6155"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How Glass reconstructs a native interop struct](https://delta1labs.hashnode.dev/how-glass-reconstructs-a-native-interop-struct?utm_source=hashnode&utm_medium=feed)

A P/Invoke struct carries a contract that is not written down anywhere in the C# you see. \[StructLayout(LayoutKind.Sequential, Pack = 1)\] and a few \[MarshalAs(...)\] attributes decide, down to the byte

Nov 16 · 8 min read · delta1labs.hashnode.dev  
Updated 6h ago  
Read the article

-   [#interop](https://hashnode.com/tag/interop)
-   [#glass](https://hashnode.com/tag/glass)

## Written by

[Zero Heartbeat](https://hashnode.com/@clustron)

@clustron

  
[View profile](https://hashnode.com/@clustron)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
