Mohammad Hamdy Ghanem
Mohammad Hamdy Ghanem
For the given sample: ``` var s = o switch { Person p => (name: p.GetName()) => { WriteLine(name); return name.Trim(); }, ... }; ```
For one reason, I hope that lambdas allow yield return like vb does. Vb xml literals is smart in consuming the IEnumerable, so inline iterator lambdas in vb works well....
@timcassell I Don't like it. It seems confusing and not exacxtly what was in mind. I thought it would be exactly the lambda block but without the `()=>` part, allowing...
@BerndPodhradsky Try mark the method that uses ref structs in VB with the `` attr. If they closed this back door as they intended while ago, then you can just...
@hamarb123 VB.NET has other ways to the future like Mercury which supports .NET Framework and .NET core and other non MS frameworks and is cross platform, and [ModVB](https://anthonydgreen.net/2022/08/20/introducing-modvb/) which is...
@hamarb123 It is a pre-release version. You can setup it as a VS extension, open a VB.NET project, then add a NuGet to make the project use ModVB instead VB.NET....
@BerndPodhradsky Create a dll that targets .NET 6.0, and add to it all code that uses the ref structs, then use it in you .NET 7 apps.
@donr484 Put the code that deals with ref structs in a .net6 dll, then reference it in your .NET 7 app.
You seem to miss a big fight here: 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 a .net 6...
@CyrusNajmabadi Customers seems unhappy here.