Bernd Podhradsky

Results 9 comments of Bernd Podhradsky

I agree that we need support for `ref struct` in Visual Basic .NET. I completely understand Microsoft's strategy to not develop Visual Basic .NET any further, but this is essentially...

@AnthonyDGreen I use `RSA.ImportPkcs8PrivateKey` to create JWTs and if you look at the documentation ([https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.rsa.importpkcs8privatekey?view=net-7.0](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.rsa.importpkcs8privatekey?view=net-7.0)) you can see that there's only one overload that requires a `ReadOnlySpan`. However, I cannot...

@AnthonyDGreen Funnily enough, in .NET 6 I was able to call that function overload by calling the `AsSpan` extension method for `IEnumerable`s - do you have any idea why that...

@hamarb123 To be honest I never really understood that argument in the first place; if stuff shouldn't be used because it's unsafe, by should/can it be used in C#? I...

@VBAndCs Unfortunately neither `` nor changing the language version fixed the issue.

The problem is that not making Visual Basic .NET support `ref struct` essentially leads to Visual Basic .NET not being usable in .NET 7, because many framework and 3rd party...

> @donr484 Put the code that deals with ref structs in a .net6 dll, then reference it in your .NET 7 app. I agree with @donr484 that this is not...

> You seem to miss a big fight here: [dotnet/roslyn#50118](https://github.com/dotnet/roslyn/issues/50118) > > They made changes in purpose to make VB.NET unable to use ref structs. So, when I say use...

Just a quick question because I have no idea how that works; apparently the usage of Spans has been allowed in VB.Net (according to [https://github.com/dotnet/roslyn/issues/65392](https://github.com/dotnet/roslyn/issues/65392)); it says "Verified" - any...