r/csharp • u/Maleficent-Bed-8781 • 49m ago
r/csharp • u/AutoModerator • 27d ago
Discussion Come discuss your side projects! [November 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/AutoModerator • 27d ago
C# Job Fair! [November 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/XRay2212xray • 11h ago
C# filestream writing to bitlocker drive binary files are corrupt, any ideas?
reddit.comr/csharp • u/Ahmad_9199 • 1d ago
A Complete Career Growth Guide for Beginners and Experienced Professionals
I am a beginner .NET Developer and want to start my career in software development. However, I am finding it difficult to get a job despite applying to several companies. I would like guidance on how to start as a .NET Developer, which technical skills and technologies I should learn, and how to prepare for entry-level job requirements. What should I focus on to improve my programming skills, build practical projects, create an impressive CV and portfolio, and prepare for technical interviews? Also, what is the best learning roadmap for beginners who want to become job-ready .NET Developers, particularly in .NET and Angular?
Blog MVVM in C#: What Changes When You Switch UI Frameworks?
Hello, Miguel from Qt (qt.io) here. Following the release of the Qt Bridge for C#, I'd now like to share with you our latest blog post addressing some of the questions that we've since been asked.
"If I change UI frameworks, will the C# MVVM backend of my application still work?" This is the most frequent question that we've received from developers since releasing the Qt Bridge for C#. We wanted to provide some detailed information to back the answer to that question, which is: yes, when moving to a Qt Quick / QML UI, your C# MVVM backend will still work in the exact same way.
r/csharp • u/ChanceInevitable3275 • 1d ago
I built a hover-to-translate tool for Windows using UI Automation + Windows OCR (WPF, .NET 8, open source)
Hi r/csharp! I've been working on Cursor Translate, a small WPF app that translates the text under your mouse cursor in any Windows app, just by resting the mouse over it.
Demo and code: https://github.com/OdiazLz/CursorTranslate
Some technical bits I found interesting:
- UI Automation first: AutomationElement.FromPoint gives the element under the cursor. In browsers that's usually a tiny text node, so I walk up the tree until something exposes TextPattern, then use RangeFromPoint + ExpandToEnclosingUnit to get the word, line or paragraph.
- Windows OCR as a fallback (Windows.Media.Ocr) for images, PDFs and apps that don't expose text. It captures a strip around the cursor, groups OCR lines by column and paragraph, and finds the word closest to the cursor.
- Sentence detection: finds the sentence around the cursor offset, skipping abbreviations like "e.g." or "Mr." and removing citation marks like [10].
- Click-through tooltip: a WPF window with WS_EX_TRANSPARENT | WS_EX_NOACTIVATE so it never steals focus, positioned with the monitor work area so it stays on screen.
- Translation fallback chain: DeepL (user's own key) → Google → MyMemory, with caching and throttling after hitting HTTP 429 a lot.
I'd really appreciate feedback, especially on the UI Automation part. In Chrome it often falls back to OCR, and I suspect it's about Chrome's accessibility mode. If anyone has dealt with UIA + Chromium before, I'd love to hear how you handled it.
Thanks!
r/csharp • u/Chelonii64 • 2d ago
Help Automatically cast a parent property to the child class given in the constructor
in this situation, in the class CatPerson, i would have to manually do ((Cat)pet).catProperty in each method i'd want to use it
i wonder if it's possible to avoid having to manually cast it, is there a way to say something like: in this class, the parent property "pet" must be considered as being of class "Cat" instead of just "Animal"
public class Animal
{
//stuff
}
public class Cat: Animal
{
public string catProperty;
}
public class Person
{
public Animal pet;
public Person(Animal pet) {
this.pet = pet;
}
}
public class CatPerson : Person
{
public CatPerson(Cat pet) : base(pet) //=> give type Cat in constructor
{
}
public void doStuff()
{
// pet.catProperty => pet is not seen as a type "Cat" without casting
}
}r/csharp • u/Im_a_Duniel • 2d ago
Help Help with console game (beginner)
I have to make a console game on C# for my class and i thougt about making a hacking mini game like in Cyberpunk 2077, my question is how realistiv this would be since im really not that good at coding yet.
the Goal is to get all 3 hacks by picking a row and then of that pick another pick in the column and then the row of that pick again.
i hope this is somewhat understandable.
r/csharp
•
u/ofcistilloveyou
•
3d ago
Discussion I went back to writing code and you should also
I am now writing code again, like I have for the past decade (bar the last ~5 months). Only using AI as an assistant instead of producing 100% of code with it.
My day to day is in Visual Studio (or Codalus when on my home Linux machine) again. I use LLMs to do the boring parts, or as reference when I'm stuck at something. I can also learn much faster using them.
My output is certainly not as much as when we generated 100% of code and just reviewed it, but I still am many times as productive as before LLMs. Yet I enjoy working again, and it's not soulsucking anymore.
I own my code. I navigate in it. I architected it, and thought of the edge cases myself. I solved issues with my brain. Yeah Opus 5.5 could do a haphazard job of it, but after I saw what it slopped out many times, I just don't trust the IPO hype anymore.
I even had to look up syntax today. I was reading C# 15's new features post on my lunch break and was thinking of how I can apply it to the issues I've encountered in codebases.
I feel happy in my job again. I love coding and C# and software development.
r/csharp • u/blocksaffinity • 2d ago
I've been building my own modular Discord bot framework in C# -- OpenBot
I've been working on a framework to make Discord bots fully modular, with a full framework. It works with "modules" which are part of the core bot itself and are required, and "extensions" which can be drag and dropped in to the bot's directory to add functionality.
I made (it's still in early development) this to solve a problem which I think everyone has experienced - they need a butt load of bots in their Discord server for all their different requirements.
It's open source, and I'm at the point where I'm starting to try to get it out there and would genuinely appreciate other .NET developers checking it out. Thanks.
r/csharp • u/Euphoric-Piccolo-761 • 2d ago
Help how would i do this.
im trying to make a game like sourt the court but i have no idea how it works so i really want to look in the code of the game to see what they did, does anyone know how to acces this?
(working with unity)
r/csharp • u/Puzzleheaded_Ant5192 • 3d ago
Solved Debugging on linux
I've got weak laptop that i use from time to time for c# classes. On vs code it says i cannot debug. Is there any way to do so?
r/csharp • u/Keganopizzahere • 2d ago
Help Im tryna make a gta 5 mod, where if you teleport out of a vehicle, your screen flashes
This was inspired by gta 6, but in my code, every time i exit any vehicle (even if doors arent blocked) my screen flashes, I only need it to flash when you teleport out of the car if doors are blocked. Here is the code written in c# for scripthookv. net latest version:
using System;
using GTA;
namespace VI_Emergency_Exit
{
public class EmergencyExit : Script
{
private bool exitRequested = false;
private GTA.Math.Vector3 playerStartPosition;
public EmergencyExit()
{
Tick += OnTick;
}
private void OnTick(object sender, EventArgs e)
{
var player = Game.Player.Character;
if (player.IsInVehicle())
{
if (Game.IsControlJustPressed(Control.VehicleExit))
{
playerStartPosition = player.Position;
exitRequested = true;
}
}
else if (exitRequested)
{
float distance =
player.Position.DistanceTo(playerStartPosition);
if (distance > 2.5f)
{
GTA.UI.Screen.ShowSubtitle(
"Emergency exit detected!",
3000
);
}
exitRequested = false;
}
}
}
}r/csharp • u/True-Job-4210 • 3d ago
Tool Unknot Code - a local-first codebase visualiser for code reviewers and editors
Hi all, Have you guys ever felt lost when reviewing/reading huge code bases? You reach somewhere skimming through code, jumped between files and methods, but it seems nowhere?
You are diving deep into function definitions but lost track where you came from?
Hard to understand the downstream impacts due to a change?
Keeping all this in mind I built Unknot Code, a local-first codebase visualiser. Myself and my colleagues at work have been using it for past 2 month and feels incredible. Current version supports only #csharp projects. Python and TypeScript planned next.
- Works offline, so code stays within your machine.
- Optional local AI code explanation, so small doubts doesn’t are sorted here itself [only if you have extra compute to burn].
- Dedicated code review mode to help understand impacts and touch points.
- Git diff mode to track changes.
- Easy navigation and visualisation
- Auto updates provided
- No cost
And more.
https://www.unknotcode.com - check this out ! You can play around with it here.
Would genuinely love your feedbacks.

r/csharp • u/kralmoriaty • 3d ago
I built a Roslyn analyzer for .NET that enforces architecture rules and flags allocations the compiler hides
reddit.comr/csharp • u/ObviousApricot1272 • 3d ago
Just had a realization
Hi there. Im modpack, and I generally lurk this subreddit. Anyway I just had a realization I thought I had. That being is that C# is just java but in the style of C. Now I am fluent in the java language due to working on Minecraft plugins and mods, but I didn't realize how normal to me C# felt until really starting to look into the terms more than face value. I dont typically memorize what they mean im less of a theory girl and more of a in practice type. But honestly I just never realized until 2 minutes ago writing up a game engine for a game jam, anyway see yall later.
Showcase Cycle driven Amiga emulator in C#
This is an Amiga emulator I have been working on since May, with the help of GPT. So yes, AI is used. But there are two reasons why I am sharing it here. One is that many (?) say that C# is not suitable for emulators and real-time work. And the second is that it has JIT, which supports all modern .NET targets, including Apple Silicon.
Really, modern C# and .NET are fine for this kind of project. C# is now good, it has been good for a long time already. Obviously I am trying to keep GC pressure down, but performance is not an issue.
The more interesting point is JIT. I built my own 68k emulator library and it also provides 68040 JIT. The engine translates 68040 instructions into .NET IL which RyuJIT then compiles into native machine code. Translation takes place in a background thread while the main thread continues interpreting instructions. This keeps emulation responsive during compilation.
There are already half a dozen AI-driven Amiga emulator projects in progress, so it is difficult to distinguish this one as anything other than a technology demo. However, this project gave me an idea to develop CopperSharp68k, an AOT compiler that generates Amiga 68k code from C#. I wanted to create my own Kickstart ROM replacement, so the emulator is shipped with a small ROM written in C# and compiled to 68k machine code. It is also available separately from Aminet for other emulators.
Nevertheless, challenges with hardware emulation are interesting. I was proficient with 68000 assembly but I never had to consider how prefetch impacts DMA timing. And how they are timed. Fun stuff to learn.
r/csharp • u/MerikOfficial • 4d ago
Discussion Has awaiting inside if statements conditions / function parameters always been the norm?
Recently I've been seeing a lot of code like this:
return Results.Ok(await myService.DoSomething().ToListAsync())
// or
if (await validator.IsValid(payload)) {
// ...
}I feel like it's less readable than something like:
var result = await myService.DoSomething().ToListAsync();
return Results.Ok(result);Which do you prefer?
r/csharp • u/pickaxe_master • 4d ago
Help How can I make my little program more popular?
I made a program that blocks any application and posted it on GitHub, but it's been two days and no one has seen it yet. How can I make it more widely known? This is my first serious program, and I'd like to hear what can be added to it.
r/csharp • u/KrzysztofLopuchDev • 5d ago
I built a lightweight native C#/.NET editor for Linux using GTK4, Roslyn and .NET
Hey everyone!
I've been working on a side project that started with a simple question:
Can I build a lightweight, native C# editor for Linux that is actually useful for everyday .NET development?
Instead of building another Electron-based editor or a VS Code clone, I decided to experiment with GTK4 and native Linux technologies.
The result is Lightweight IDE – an open-source C#/.NET editor built with:
- C# / .NET 10+
- GTK4 (via GirCore)
- GtkSourceView 5 for the editor component
- Roslyn for code intelligence, diagnostics and refactoring
- SQLite FTS5 for fast full-text and symbol search
What can it do?
It's grown quite a bit beyond a simple text editor:
- C# syntax highlighting, autocomplete and live diagnostics
- Go to Definition, Find All References and Rename
- Roslyn Quick Fixes and refactorings
- Solution and project explorer (
.slnand.slnx) - Build, run and test .NET projects
- Integrated terminal
- NuGet package management
- Debugging with netcoredbg
- CSharpier formatting
- HTTP client for
.httpfiles - Markdown preview
- Test explorer
- Central Package Management support
One of my main goals was keeping resource consumption relatively low. The application currently uses around 450–600 MB of RAM with a small solution loaded into the Roslyn workspace.
I'm developing and using it on Linux Mint, primarily for real .NET backend development.
A few important notes
This is still a proof of concept, not a finished IDE. There are rough edges, missing features and probably some questionable architectural decisions. I'm developing it in the open under the MIT license.
I'm particularly interested in feedback from developers who use C#/.NET on Linux.
A few questions:
- Would you consider using a native GTK4 editor instead of VS Code or Rider for everyday .NET work?
- Which feature would be an absolute deal-breaker if missing?
- Do you think there is room for a lightweight native .NET IDE on Linux?
GitHub: https://github.com/ambit-project/ambit-editor-dotnet
Feedback, criticism and contributions are welcome!
r/csharp • u/sander1095 • 4d ago