10 C# Mistakes I See Even Senior Developers Make
Tech For Coder
0:00 / 0:00
10 C# Mistakes I See Even Senior Developers Make
13 просмотров · 11 дн. назад
Tech For Coder
8 подписчиков
13 просмотров · 11 дн. назад
Are you making these C# mistakes without even realizing it?
In this video, I cover **10 common C# mistakes that even experienced developers can make**, especially when working with ASP.NET Core, async programming, LINQ, Entity Framework, and APIs.
We’ll look at:
00:00 Incorrect exception rethrowing
02:52 Using `async void`
04:20 .Result Deadlocks
05:15 IQueryable vs. IEnumerable: multiple database calls with `IQueryable`
07:20 `IEnumerable` worst case
08:19 Not using `AsNoTracking()`
09:15 Calling `ToList()` too early
09:57 Creating and disposing `HttpClient` repeatedly
11:15 Overcomplicated null checking
11:39 Improper string comparison methods
These aren't beginner-only mistakes—they can lead to **performance problems, unnecessary database calls, poor error handling, and difficult-to-maintain code**.
If you're a C# or .NET developer, this video will help you write cleaner, safer, and more efficient code.
#CSharp #DotNet #Programming #ASPNetCore #Coding