Questions tagged [.net]
.NET is a software framework supporting a multi-language paradigm and supporting language interoperability. .NET applications are executed in a virtual machine (CLR) which provides a few important services: security, memory management and exception handling.
1,240 questions
2
votes
1
answer
80
views
C# .NET 9 API for managing a personal investment portfolio
I've written a C# API using .NET 9 with the goal of managing a personal investment portfolio – that means,
adding funds
adding or removing transactions (for ETFs, ETCs, and usual funds)
retrieving ...
4
votes
1
answer
368
views
Tic Tac Toe Game app design - ways to design or segregate too much logic from UI
I wanted to check my system design and/or object oriented design skills. I started with this Tic Tac Toe WinForms Desktop program. The user couldn't input characters other than O , X . Both players of ...
2
votes
1
answer
160
views
Blazor web app using .NET 9: SQLDbSettings Code Optimization
I am developing a Blazor web app using C# .NET 9 in Visual Studio Code. I am using SQL Server 2017. This project is intended for internal company use.
In the ...
1
vote
1
answer
97
views
Generic UnitOfWork implementation (Dapper)
I'm creating a three layered Visual Studio template solution that I'll be using as a starting point for all ASP.NET projects.
The layers are Presentation, Application and Infrastructure. ...
3
votes
1
answer
143
views
Custom Math Parser for trivia game
This parser is made for part of larger trivia game, and only allowed numbers are positive integers. So negative or decimal numbers should return -1 as sign of error.
I'm pretty new to programming and ...
4
votes
2
answers
186
views
Implementing a custom logger in .NET
One of my latest projects has been implementing a custom .NET logger, as a lot of our products use their own logging solution and we're trying to standardize, but that means accounting for a lot of ...
4
votes
1
answer
117
views
Simple async lock using key in .NET
The task is to make a simple LockProvider that will lock a thread by identifier.
Basic requirements:
Simple call via using block.
Support for CancelationToken to get out of waiting without exceptions....
3
votes
1
answer
92
views
A Maui App that helps to track your mood
I just got my first .NET MAUI App up and running.
I pushed it to my repo at https://codeberg.org/ulrich-jell/MoodDiary
It aims to track your overall mood of the day, so you can (more or less) quantify ...
2
votes
1
answer
119
views
Seeking Suggestions for Improving My Program.cs File for a .NET Project
I use this code as reference for when I start working on a new project whether that be for personal or for work. It's worked fine so far, but I'm wondering if anyone can read it and provide any ...
7
votes
1
answer
117
views
.net core web API simple app with one endpoint
I am trying to complete a challenge - a simple .net core API with one simple endpoint. This endpoint should validate the user's information
and return a unique ID. He should provide: 1) Name, 2) ...
7
votes
2
answers
456
views
High performance Thread-safe FIFO accumulator
I am writing some C# code. I want to find a data structure that can implement the following strategy:
FIFO data access mode
Multiple independent threads add elements to the data structure
At a random ...
4
votes
1
answer
171
views
Abstraction with Ef core (repository)
I am new to entity framework, and I've been working on a project lately that I used clean architecture in and found myself in a bit of hassle. should I introduce further abstraction to the already ...
5
votes
2
answers
220
views
Information of Selected Cells from DataGridView in C#
I've created some functions to calculate summation, maximum, minimum, average and standard deviation value of selected cells from DataGridView in C#.
The ...
3
votes
1
answer
130
views
.net api implementing oauth 2.0
I am trying to implement Oauth in my .net API with EntityFramework. I already completed the custom local authentication with JWT tokens and refresh tokens. I got a little bit confused as to how I ...
4
votes
1
answer
113
views
Abstraction Layers and Best Practices in Authentication with EF Core
Do you recommend adding a layer of abstraction on top of EF Core for example we have an API controller responsible for authentication do I just call EF Core methods directly in the controller or do I ...