Create ref struct type in VB.net.
- Dominant language
- No language data
- Stars
- 328
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
While I do my research in .net 5 on meta data of class type, I encounter how ref struct create in C# and I remember @VBAndCs work around on it but suffer the same rule as on C# without compiler check support, my method also suffer from that problem because VB IntelliCode isn't support it so it need to run so runtime could spot an error from ref struct but it can be create in pure VB language; what's need to add on normal structure is `IsByRefLike` attribute like this example code.
```vb
Public Structure ref_struct
Public x, y As int
Public Function [double]() As int
Return x * x
End Function
End Structure
```
I'm not sure its behavior is the same with C# or not, I rarely use ref struct so could anyone work with ref struct please compare how it work on VB to C# or F# ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.