---
title: "Discussion on \"How Glass recovers the unmanaged constraint\" | Hashnode"
description: "Discussion on \"How Glass recovers the unmanaged constraint\". where T : unmanaged looks like a first-class constraint in C#. You write it, the compiler accepts it, and inside the method you can take &v, sizeof(T), or stackalloc T[n] as if T were a blittable prim"
url: "https://hashnode.com/posts/how-glass-recovers-the-unmanaged-constraint/6b12cce83d098e871a679484"
---

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

Discussion

# [How Glass recovers the unmanaged constraint](https://delta1labs.hashnode.dev/how-glass-recovers-the-unmanaged-constraint?utm_source=hashnode&utm_medium=feed)

where T : unmanaged looks like a first-class constraint in C#. You write it, the compiler accepts it, and inside the method you can take &v, sizeof(T), or stackalloc T\[n\] as if T were a blittable prim

11h ago · 8 min read · delta1labs.hashnode.dev  
Read the article

-   [#glassnet](https://hashnode.com/tag/glassnet)
-   [#decompilation](https://hashnode.com/tag/decompilation)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

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

@clustron

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
