The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

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

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):

Read the rest of this entry »

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:

Read the rest of this entry »

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″

Read the rest of this entry »

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

Read the rest of this entry »

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:

Read the rest of this entry »

Posted in .NET, C#, C# 11, Development, Software Development | Leave a Comment »