Tootfinder

Opt-in global Mastodon full text search. Join the index!

@khalidabuhakmeh@mastodon.social
2025-08-28 18:43:24

Target type new format only works on a params if there is more than one parameter. Damn! Feels like an oversight in #csharp.
#dotnet

Target type new for a params method with examples of one and two parameters. The one parameter fails saying the target type new didn’t match an array.
@khalidabuhakmeh@mastodon.social
2025-09-12 15:24:29

Using the `extension` keyword in #csharp 14 is kind of awkward. It would be nicer to be able to use it as a top-level declaration without the wrapping static class.
Before you say, "where would they exist in that case?”, each namespace would have a catch-all static class that would hold these extension methods if there is no wrapping class.

Use of C# 14 extension keyword
@khalidabuhakmeh@mastodon.social
2025-09-12 14:44:03

Be honest, who here remembers that #csharp introduced a file keyword? #dotnet

@khalidabuhakmeh@mastodon.social
2025-09-10 19:15:03

Has someone adapted #csharp source generators to bring a macro-like experience to #dotnet?

@rperezrosario@mastodon.social
2025-09-03 17:20:01

C# Programmers:
Your IDE(s) of choice.
#programming #dotnet #csharp #ide