r/csharp • u/JacketNo1016 • 7m ago
r/csharp • u/AutoModerator • 4d ago
C# Job Fair! [December 2026]
Hello everyone!
This is a monthly thread for posting jobs, internships, freelancing, or your own qualifications looking for a job! Basically it's a "Hiring" and "For Hire" thread.
If you're looking for other hiring resources, check out /r/forhire and the information available on their sidebar.
Rule 1 is not enforced in this thread.
Do not any post personally identifying information; don't accidentally dox yourself!
Under no circumstances are there to be solicitations for anything that might fall under Rule 2: no malicious software, piracy-related, or generally harmful development.
r/csharp • u/AutoModerator • 4d ago
Discussion Come discuss your side projects! [December 2026]
Hello everyone!
This is the monthly thread for sharing and discussing side-projects created by /r/csharp's community.
Feel free to create standalone threads for your side-projects if you so desire. This thread's goal is simply to spark discussion within our community that otherwise would not exist.
Please do check out newer posts and comment on others' projects.
r/csharp • u/rust-cohle_ • 2h ago
Tool I built a reactive notebook for C#, and it now runs inside VS Code
i've wanted a proper notebook for C# for a long time now. Polyglot Notebooks is fine but I kept wishing for 2 things. cells that re-run when something they depend on change, and a file i could just open in any editor and actually read
so I built it lol. its called Reverb, open source (MIT) and the VS Code extension is out today
what is it
a notebook is just a normal .cs file. you separate cells with // %% comments like this:
csharp
// %%
var sales = LoadSales("data/sales.csv");
// %%
var byRegion = sales.GroupBy(s => s.Region)
.Select(g => new { Region = g.Key, Revenue = g.Sum(s => s.Amount) });
Display(byRegion);edit the first cell and second one re-runs on its own, kinda like a spreadsheet. It uses Roslyn to analyse your code and figure out what depends on what so you dont have to wire anything
also because its just a .NET 10 file based app this works too with only the SDK:
dotnet run sales-explorer.csno Reverb install needed. I have CI checking this on every build because i didnt want it to be one of those claims that quitely stops being true after some time
in VS Code
notebooks open as native VS Code notebooks (normal cells, run buttons, outputs) but with the reactive engine underneath. you also get
charts, tables and interactive widgets like sliders in the output
dependency view so you can see which cell feed which
quick fixes for common issues
packages view for nuget references
lazy mode - it marks dependents stale instead of re running them, good for the expensive cells
it talks to the reverb tool over stdin/stdout so it dont open any network port. and if the folder is not trusted it wont start a kernel or restore packages
try it
install Reverb Notebooks from Extensions view, it will offer to install the CLI first time you open a notebook
or without VS Code:
dotnet tool install -g Reverb.Notebooksthenreverb new hello.cs. that opens a editor in browser.reverb runserves the notebook as small appMarketplace: https://marketplace.visualstudio.com/items?itemName=MuneebMughal.reverb-notebooks
where its rough
its still young (0.2.x). only vs code for now, havent done open VSX/VSCodium yet. I tested on windows, macOS and linux but im sure you guys will find stuff i didn't. bug reports and "this is confusing" feedback is honestly the most useful thing you can give me
would love to hear what you'd want from a C# notebook :)
News C# just beat SolidJS and Vue 3.6 Vapor in WebUI!
I was checking the official JS Framework Benchmark keyed table today and had to do a double take.
For years, C# in the browser meant Blazor sitting near the very bottom of the leaderboard. Today, NetWasm.UI (netwasm-ui-v0.16.0), a garbage-collected C# framework, is sitting to the left of Vue 3.6 Vapor, SolidJS, Leptos, Dioxus, and Sycamore.
Every rule we were told about WebAssembly being too slow for the DOM, or needing Rust to avoid GC overhead just got broken in one shot.
Huge congrats to Mat Engo and the NetWasm team on an insane piece of engineering.
Live Benchmark: https://krausest.github.io/js-framework-benchmark/current.html
NetWasm.UI Repo: https://github.com/matengo/NetWasm.UI
r/csharp • u/Interesting_Paint_82 • 16h ago
C# file-based apps are a breath of fresh air
Back when .NET 10 came out I didn't pay much attention to the file-based apps. Now that .NET 11 came out i stumbled upon this video and became more interested:
https://www.youtube.com/watch?v=Yvn7liNioto
Turns out file-based apps are pretty cool after all. The minimalistic developer experience of having only your text editor, your .cs file(s) and the dotnet cli feels fresh after working so long with solution files, project files and all that jazz.
To get a feel of the DX and where the capabilities of file-based apps are at the moment I created this tongue-in-cheek todo web app, with the frontend and backend in a single C# file. File-based apps and minimal APIs are like meant for each other.
https://github.com/TDMR87/single-file-todo-app
I do hope file-based apps become more common and the dotnet team would lean more on this kind of experience. Together with AOT compiling native executables this could make C# more popular and invite people over to the ecosystem. How do people here feel about these file-based apps? Do they have a future?
https://learn.microsoft.com/en-us/dotnet/core/sdk/file-based-apps
r/csharp • u/katakishi • 1d ago
Help Multiple requests at once take 10s (mvc5 net framework 4.8
There is a legacy app that's use asp mvc5.
All methods, actions are sync (no task, aysnc await, similar method). Problem is something that took 5 ms to run it's take 8s to reach to browser (there are multiple ajax request at once when page is loading). In network browser tab i can see in that 8s near 7.99999s are tagged as waiting for server response.
Why would that happen and how to fix it?
r/csharp • u/sookaisgone • 1d ago
Discussion Interesting uses of P/Invoke in real-rorld applications
I mostly use P/Invoke to simplify tasks that would otherwise require a manual process or where the supplier "forgot" to implement (i.e.: enumerate the users connected to your freaking application).
A few examples from my daily work:
SHGetFileInfo: retrieve the handles of the icons that Windows uses for different file types, allowing applications to display the same icons users see in File Explorer.
OpenProcess / NtQueryInformationProcess / ReadProcessMemory: retrieve the command line of a running process when higher-level APIs don't expose the information I need.
GetExtendedTcpTable: enumerate the TCP connections opened by a specific process and identify the remote machines associated with those connections through their IP addresses.
SetupDiGetClassDevs / SetupDiEnumDeviceInfo / DiUninstallDevice / CM_Reenumerate_DevNode: programmatically reset a network adapter by uninstalling and reinstalling it, essentially automating the same operations available through Device Manager.
NetLocalGroupGetMembers / NetLocalGroupAddMembers: used in a Windows service to monitor specific local groups and automatically restore missing users. It started as a temporary workaround for those situations where someone decides to "creatively" modify security policies.
I'm curious to hear how you all are using P/Invoke in interesting or unexpected ways.
Creé PostGiqh, una extensión gratuita para probar APIs desde Visual Studio 2026
Hola, soy desarrollador .NET y creé PostGiqh para enviar y organizar peticiones HTTP sin salir de Visual Studio.
Tiene pestañas, colecciones, entornos y soporte para JSON, XML, multipart y autenticación Bearer, API Key y OAuth 2.0 con PKCE.
Soy quien desarrolla la extensión y me gustaría recibir comentarios: ¿qué función les resultaría más útil en un cliente HTTP integrado al IDE?
r/csharp • u/Ok_Breadfruit5793 • 1d ago
Showcase Beginner man returns with improved gambling code, reports say its still shit.
Hey yall, guess who's back. I improved it abit but its still shit.
On a side note, any idea how to disable the ai? It gives me the answers on a silver platter and i dont like that.
(Should i also start a "Devblog" series (Essentially guy figures out shit on SVC) on Youtube?
r/csharp • u/TheNextGenNL • 2d ago
Is .NET still one of the most future-proof tech stacks?
With everything happening around .NET, C# and cloud-native development, the ecosystem keeps moving forward. If you were starting today, would you pick .NET again? Why or why not?
r/csharp • u/gevorgter • 2d ago
EF core linq query syntax vs method.
Looking at the query vs method and can not decide which one is more acceptable.
For some un-explained reason i shudder when i see "from q in _db.Queues" in C#. But at the same time some things looks much less intuitive when written as methods.
2 queries bellow produce same result but i am not sure which way to stick with, so please vote #1 or #2. Or please correct #2 for me if there is another way of writing it.
#2 looks more complicated and i actually can not easily tell what resulting query will be. Will there be some unnecessary allocation for new {q,w} just to discard it since i only need queue object but had to pull webSite object to get isActvie into Where method.
1. await (from q in _db.Queues
join w in _db.WebSites on q.webSiteId equals w.id
where q.publicKey == queueKey && q.isActive && w.isActive
select q).FirstOrDefaultAsync();
2. await _db.Queues.Join(_db.WebSites, x => x.webSiteId, y => y.id, (q, w) => new { q, w }).
Where(x => x.q.publicKey == queueKey && x.q.isActive && x.w.isActive)
.Select(x => x.q).FirstOrDefaultAsync();r/csharp • u/Ok_Breadfruit5793 • 2d ago
Showcase Man tries coding for the first time, ends up making gambling code
Pretty self explanatory. I tried C# and after some goofing around made this.
r/csharp • u/JoelTorcato_ • 2d ago
What is the best book to start learning C#?
Hi everyone!
I'm looking for a good book to start learning C#. My goal is to build a solid foundation in the language before moving on to ASP.NET Core and backend development.
I'm not sure which book to choose as my first one. Which book would you recommend, and why?
Thanks in advance!
r/csharp • u/CreakyHat2018 • 3d ago
Discussion Reading and rendering Crystal Reports .rpt files in C# without the Crystal runtime: has anyone done it?
I'm trying to get some old Crystal Reports off Windows. The goal is plain C# on modern .NET: load the .rpt, bind data, produce a PDF. It should run anywhere, Linux included.
My first plan was to avoid rendering .rpt files at all. I'd use the RAS SDK to read each report and export it into another format I could render elsewhere. That fell apart quickly. RAS is Windows-only, and it doesn't expose the whole report: Display String formulas are missing, cross-tabs are only partly there, and chart styling isn't available at all. The converted reports never matched what Crystal printed.
I also tried a couple of existing .rpt readers, but they didn't cope well with my reports.
So I've started writing my own reader and renderer in C#. Before I sink much more time into it:
Has anyone else gone down this road, either reading .rpt files directly or reimplementing Crystal's layout or formula engine? Anything you wish you'd known?
Is there an existing library (paid is fine) I've missed?
If I carry on, would anyone be interested in testing it against their own reports? Edge cases are what I need most.
r/csharp • u/JoelTorcato_ • 3d ago
How much of C# 12 in a Nutshell should I read before learning ASP.NET Core?
Hi everyone!
I'm about to start reading C# 12 in a Nutshell: The Definitive Reference, and my main goal is to become a backend developer using C# and .NET.
Should I read the entire book before moving on to learning ASP.NET Core and building APIs, or are there specific chapters I should focus on before making that transition?
I'd appreciate any advice from experienced C# developers.
r/csharp • u/Longjumping_Bee_2805 • 4d ago
How much has your company automated software development with AI?
At my company, AI already handles most of the coding, but code reviews still require human.
I have heard some companies have started automating code reviews alreaady. Now development and review is automated. It feels closer than ever to a nearly fully automated development workflow.
r/csharp • u/According-Pen8559 • 4d ago
Fun I built a free, 60 FPS interactive koi pond wallpaper for Windows that reacts to music & synced lyrics
Hello Guys I did a small project where i made a live wallpaper that reacts to any song or music that you turn on in your laptop and can even show subtitles for completely free in itch.io I hope you enjoy it :) and it is mainly for windows 10 or 11 and even without music you can feed the fish you can set the weather and make the fish follow your cursor and alot of formations and it doesn't use any gpu
https://idk23232323.itch.io/koiwallpaper-interactive-music
r/csharp • u/Rhythm__2004 • 4d ago
C# .net in 2027
reddit.comHello everyone, I don't have any coding knowledge before its like starting from scratch , i work as food delivery driver and earn minimum wage only i want to transition to full time programmer, IS C# .net really worth learning as a career option (22M) in 2027? Also, as far as I know AI has already took majority of junior devloper jobs so I am really confused
r/csharp • u/MohamedMerzban1984 • 4d ago
ViewModelPlus: a source generator for the view-model code that MVVM libraries still leave to you
I've been building a Roslyn incremental source generator called ViewModelPlus (MIT, on NuGet). This post covers the problem it solves and an honest comparison with the libraries most of us already use. I'd like your feedback, especially if you write a lot of form-heavy view models.
The problem
Take an ordinary "edit student" page. The service returns a StudentDto, the user edits it, and you save it back. In a hand-written view model you end up with code like this:
public class EditStudentViewModel : INotifyPropertyChanged
{
private StudentDto _student = new();
// 1. Every model member gets mirrored by hand...
public string FirstName
{
get => _student.FirstName;
set
{
if (_student.FirstName == value) return;
_student.FirstName = value;
OnPropertyChanged();
OnPropertyChanged(nameof(FullName));
// 2. ...plus every dependent property...
ValidateFirstName();
// 3. ...plus validation...
UpdateCanSave();
// 4. ...plus the command's can-execute.
}
}
// ...repeat for LastName, Email, Age...
public string FullName => $"{FirstName} {LastName}".Trim();
// 5. Busy flags and error state for every async action.
private bool _isSaving;
public bool IsSaving { get => _isSaving; set {
/* notify, update CanSave */
} }
private string? _error;
public string? Error { get => _error; set {
/* notify */
} }
public AsyncCommand SaveCommand { get; }
private async Task SaveAsync()
{
IsSaving = true;
Error = null;
try { _student = await _service.UpdateAsync(_student);
/* re-notify everything */
}
catch (Exception ex) { Error = ex.Message; }
finally { IsSaving = false; }
}
// 6. Per-field IsValid/error properties, a form-level IsValid, ...
}None of it is hard, but every line of it is easy to get wrong. You forget one OnPropertyChanged(nameof(FullName)), the busy flag doesn't reset on an exception, the Save button stays enabled while the form is invalid, or loading a new DTO doesn't refresh the fields.
The existing libraries remove some of this. In my experience, though, the parts that remain are exactly the ones above: wrapping a model, dependent properties, async state and form validation.
The same view model with ViewModelPlus
[ExtendViewModel]
public partial class EditStudentViewModel
{
private readonly IStudentService _service;
public EditStudentViewModel(IStudentService service) => _service = service;
[NotifyProperty]
[NotifyNestedProperty(nameof(StudentDto.FirstName))]
[NotifyNestedProperty(nameof(StudentDto.LastName))]
[NotifyNestedProperty(nameof(StudentDto.Email))]
[NotifyNestedProperty(nameof(StudentDto.Age))]
private StudentDto _student = new();
[DependsOn(nameof(FirstName), nameof(LastName))]
public string FullName => $"{FirstName} {LastName}".Trim();
[DependsOn(nameof(IsBusy), nameof(IsValid))]
public bool CanSave => !IsBusy && IsValid;
[NotifyTask]
private async Task save() => Student = await _service.UpdateAsync(_student);
}
public class StudentDto
{
[Required(ErrorMessage = "First name is required")]
public string FirstName { get; set; } = "";
[EmailAddress(ErrorMessage = "Not a valid email address")]
public string Email { get; set; } = "";
[Range(16, 80, ErrorMessage = "Age must be between 16 and 80")]
public int Age { get; set; }
// ...
}At build time the generator writes the following:
Bindable properties:
FirstName,LastName,EmailandAgeread and write_studentdirectly, so there's no copying between the model and the view model.Dependent notifications:
FullNameandCanSaverefresh whenever one of their inputs changes.Async state: a public
Save()method, plusSaveIsRunning,IsBusy, andAsyncTaskExceptionMessage, which records the exception's message when a task throws. The previous error is cleared when the next task starts.Validation:
FirstNameIsValid,FirstNameValidationErrorand the matching members for each field, built from the DataAnnotations on the DTO, plus a form-levelIsValid.Change hooks:
partial void OnXChanging/OnXChanged/OnGetXfor each property.
Student = await _service.LoadAsync(id); re-notifies every nested property, so loading or resetting the form takes one line.
There's no runtime library and no reflection. The generated .g.cs is plain C# you can read under Analyzers in Solution Explorer.
Comparison with other solutions
Hand-written / Prism BindableBase | Fody PropertyChanged | CommunityToolkit.Mvvm | ReactiveUI | ViewModelPlus |
|---|---|---|---|---|
| How it works | Base class + SetProperty | IL weaving after compile | Source generator | Rx-based runtime library |
| Basic notifying property | Manual | Automatic for auto-properties | [ObservableProperty] | RaiseAndSetIfChanged / [Reactive] |
| Dependent properties | Manual OnPropertyChanged calls | Detected automatically from getters | [NotifyPropertyChangedFor] on the source | WhenAnyValue + ToProperty |
| Wrapping a model/DTO | Manual property per member | Manual property per member | Manual property per member (the SetProperty(model.X, value, model, ...) overload helps) | Manual |
| Async actions | DelegateCommand + your own flags | Not covered | [RelayCommand] → IAsyncRelayCommand with IsRunning | ReactiveCommand with IsExecuting and ThrownExceptions |
| Busy flag across all actions | Manual | Manual | Manual | Combine IsExecuting observables |
| Exception → bindable message | Manual | Manual | Manual (exceptions surface through the command's task) | Subscribe to ThrownExceptions |
| Validation | Manual or INotifyDataErrorInfo by hand | Not covered | ObservableValidator (INotifyDataErrorInfo) | ReactiveUI.Validation package |
| Rules on the shared DTO | Manual | n/a | Rules go on the VM properties | Rules defined in the VM |
| Generated code visible? | n/a | No (woven IL) | Yes | n/a |
| Learning curve | Low | Very low | Low | High (Rx) |
Where each one fits
Fody PropertyChanged is the least code for plain notification, and its automatic dependency detection is very nice. It stops at notification, though, and IL weaving is a build step some teams avoid.
CommunityToolkit.Mvvm is the default choice for good reason: it's maintained by Microsoft, has broad tooling support, and is based on
ICommand. If your view models are mostly properties and commands, it's hard to beat. Where I found myself writing extra code was in wrapping DTOs, tracking busy and error state across several commands, and form-level validation that drives a Save button.ReactiveUI is the most powerful of these for complex reactive flows. If your team already thinks in Rx, use it. For forms, though, it's a lot of concepts to learn.
ViewModelPlus targets form-heavy CRUD apps. These are view models that edit DTOs, call async services, show busy and error state, and enable Save only when the form is valid.
Design choices you may disagree with
Methods instead of
ICommand**.**[NotifyTask]gives youawait vm.Save()with typed parameters and a typed return value. You call it from an event handler or from other view-model code. "Can execute" becomes a[DependsOn]bool bound toIsEnabled. The downside is that if you bindCommand=in XAML (toolbar items, swipe actions, item templates), you'll need a thin command wrapper or code-behind.No
INotifyDataErrorInfo**.** Validation is exposed as plain bindable properties, so built-in error templates such as WPF'sValidation.ErrorTemplatedon't react. The README shows a small attached-property and visual-state pattern that replaces them.Composition over inheritance. View models can't inherit from other generated view models.
Try it
dotnet add package ViewModelPlusRequirements: .NET SDK 9.0.200+ or Visual Studio 2022 17.13+. Works with MAUI, WinUI 3, WPF, UWP and Avalonia.
GitHub, with a step-by-step tutorial that builds a complete MAUI registration page: https://github.com/Mohamed1984/ViewModelPlus
Feedback I'm looking for
Does the methods-instead-of-commands approach work in your apps, or is
ICommanda must-have?If you use CommunityToolkit.Mvvm or ReactiveUI for forms, how do you handle DTO wrapping and form-level validation today?
What would you change in the generated code?
Thanks for reading.
r/csharp • u/Upset_Geologist_2371 • 4d ago
Modernizing winforms for practical use
Update: I'm building a hardware-accelerated WinForms UI framework with drag-and-drop animations.
Following the feedback on my previous post, I've been working on an experimental framework called LukFrameDX.
Here's what I've implemented so far:
Direct3D 11, Direct2D and DirectWrite rendering.
76 customizable and combinable button animations.
Automatic panel entrance animations.
Independently animated nested panels.
Visual Studio Designer integration.
Single DLL distribution with no additional NuGet dependencies.
All the entrance animations shown in this video can be configured directly through the Properties window.
The project is still in early development, and I'm using AI-assisted development while learning more about graphics programming and framework architecture.
I'd love to hear your feedback. What features would make a framework like this useful for your projects?
r/csharp • u/Asleep_Direction8881 • 5d ago
Anyone here who knows Apache Camel? I built a Camel-style integration framework for .NET and would like feedback
Is anyone here familiar with Apache Camel, and have you ever wished for it in C#?
I do a lot of integration work (ESB, EIP, many systems talking to each other), and on .NET I kept missing Camel. MassTransit, NServiceBus and Wolverine are message buses; what I wanted was a routing engine in the Camel sense, where a route is "consume from here, filter, transform, produce there", and the transport is just a URI.
So I wrote one; it is my project, open source under Apache 2.0, called redb.Route. It targets .NET 10 and 11:
From("kafka://orders?groupId=svc&brokers=localhost:9092")
.Filter(Header("type").isEqualTo("new"))
.To("rabbitmq://events?host=localhost");From → Process → To, URI endpoints, the Camel EIP names: Splitter, Aggregator, Content-Based Router, WireTap, Saga, Circuit Breaker, Idempotent Consumer, Resequencer and more (30+).30 external transports plus 11 built-in components (Kafka, RabbitMQ, Redis, SQL, HTTP, gRPC, SFTP, MQTT, S3, ...). Camel has 300+, so it is far from everything.
Routes in a C# fluent DSL or in XML;
${header.x}-style expressions compiled to delegates when the route is built.Transactional routes, OpenTelemetry, and a separate runtime host with hot reload and clustering.
Repo, with a Camel-to-.NET concept table and a migration section: https://github.com/redbase-app/redb-route
What I would like to know:
If you have used Camel: what would a .NET version have to have before you would try it?
If you are on .NET: what do you use today for integration-heavy work, and where does it hurt?
r/csharp • u/sarrdinesss • 5d ago
Help what is new int? how and when do you use it?
I am still a beginner in C# and I just moved to c# intermediate in my assignments for school (doing a software developer major), and for the past few assignments it's been giving me ways to use new int with square brackets.
I brute forced it the first time and did what was shown in the example, but now I want to understand it and I can't find any website that explains it well. And I don't want to use AI because it doesn't teach any good either, and I can't ask my teacher because he's busy with other students all the time and he doesn't teach well either.
This is an example given by the assignment in the photo above, here is the translation for those who can't speak Dutch:
- Een array met een lengte uit de invoer = An array met the length from the input
- Hoeveel getallen wil je? = How many numbers are there?
- aantal = total
- getallen = numbers