Reminder to check out this [Wayback/Archive] David Fowler on Twitter: “Playing around with using static interface methods and the new IParsable to make generic callsites for HTTP APIs. Before .NET 7 there was no way to write generic code that did {Type}.TryParse/{Type}.Parse. The type system didn’t have a way to describe these contracts. #dotnet” (and OCR the images):
Archive for the ‘C# 11’ Category
David Fowler on Twitter: “Playing around with using static interface methods and the new IParsable to make generic callsites for HTTP APIs. Before .NET 7 there was no way to write generic code that did {Type}.TryParse/{Type}.Parse. The type system didn’t have a way to describe these contracts. #dotnet”
Posted by jpluimers on 2024/07/25
Posted in .NET, .NET Core, C#, C# 11, Development, Software Development | Leave a Comment »
sharplab.io – ashmind/SharpLab: .NET language playground
Posted by jpluimers on 2024/05/08
[Wayback/Archive] ashmind/SharpLab: .NET language playground is hosted onΒ [Wayback/Archive] SharpLab.ioΒ Β and has this README:
Posted in .NET, C#, C# 10, C# 11, Development, F#, Software Development, VB.NET | Leave a Comment »
Not sure I like this without tail recursion
Posted by jpluimers on 2024/05/07
A while ago Andy Gocke posted this bit of C# 11 code:
[Wayback/Archive] Andy Gocke on Twitter: “Can’t believe none of that “C# is turning into F#” people have noted that this is legal code in C# 11″
Posted in .NET, C#, C# 10, C# 11, Development, F#, Software Development | Leave a Comment »
Please do not make your C# code an obfuscation contest
Posted by jpluimers on 2024/04/23
You. This is valid C# code. Guess what it does [Wayback/Archive]:
for ( var (f,l) = (1, 10); f <= 10; Console.WriteLine($"{f} + {l} = {f + l}"), f++, l-- );
Via [Wayback/Archive] Khalid πβπ¦Ίππ© on Twitter: “Iβm trying some programming in #csharp today. Am I doing this right? #dotnet”
–jeroen
Posted in .NET, C#, C# 10, C# 11, Development, Software Development | Leave a Comment »
C# List Patterns: csharplang/list-patterns.md at main Β· dotnet/csharplang
Posted by jpluimers on 2024/02/07
For my URL list:
Posted in .NET, C#, C# 11, Development, Software Development | Leave a Comment »





