Bald Bearded Builder
topics/csharp

/csharp

The language itself. Pattern matching, nullable reference types, records, and the features people skip because the old way still compiles.

Videos filed under csharp

Video

The Secret to Mastering Queue, Stack and Dictionary in C#!

EF Core soft deletes can be implemented with a nullable deletion timestamp, a save-changes interceptor, and global query filters.

13:3013,647 views521 likes
Video

Async Void in C#: The Trap Card You Keep Playing

The C# `init` accessor supports object initializers while preventing properties from being changed after initialization.

8:175,446 views281 likes
Short

How Pattern Matching Saves Your Day!

ASP.NET Core exception handling progresses from built-in middleware and custom middleware to modular .NET 8 `IExceptionHandler` implementations registered in priority order.

0:314,507 views57 likes
Video

Easy LINQ Tips Every Developer Should Know!

Practical LINQ techniques improve performance and readability by avoiding repeated work, unnecessary allocations, unstable pagination, and accidental client-side processing.

13:4913,052 views629 likes
Short

C# '== null': There's a Better Way!

The Peacock extension color-codes VS Code workspaces to distinguish projects, Live Share sessions, containers, WSL, and remote environments.

1:032,882 views109 likes
Short

Can One Letter Break Your App!?

Parameterizing Entity Framework queries can let EF reuse a compiled query shape and help the database reuse its query plan.

0:354,756 views71 likes
Video

Stop Using == null: The Safer C# Pattern You Need Today!

C# inequality operators and `is not` pattern matching behave differently around constants, boxing, type checks, nulls, and overloaded operators.

11:4115,549 views580 likes
Short

ToLower is Killing your App Performance!

`Task.Wait` blocks its thread, while `await` releases that thread for other work until the operation completes.

0:431,851 views54 likes
Video

Stop Using ToLower() for Comparisons! The Fast, Correct Way in C#

14:2649,820 views1,803 likes
Video

Supercharge Your WinForms Projects with .NET 9 Roslyn Analyzers

3:541,109 views31 likesYouTube
Short

Value Types in C#

Using `var` can reduce repetition and simplify refactoring, but descriptive names and team-wide consistency matter more than personal preference.

0:541,414 views75 likes
Short

Reference Types in C#

C# reference types hold references to objects, so two variables can point to the same instance and observe the same changes.

1:001,170 views52 likes
Video

The Best C# Collections Explained

C# 12 expands aliases to tuples, pointers, arrays, and most other types, helping shorten repeated or complex declarations.

4:2215,847 views758 likes
Video

C#: Class, Struct or Record - Which Should You Choose?

Classes, structs, records, and record structs are compared through reference versus value semantics, equality, mutability, and practical selection criteria.

7:5362,988 views2,742 likes
Short

String or string in C#?

C# `string` is an alias for `System.String`, making the choice primarily a matter of style and team consistency.

0:552,147 views102 likes
Video

Should You be Using the var Keyword in C#?

Choosing among `IEnumerable`, `ICollection`, `IList`, and `IQueryable` depends on whether data needs iteration, mutation, positional access, or remote query processing.

2:581,654 views77 likes
Video

What is the Record Type in C#?

Returning `Task` instead of `async void` keeps asynchronous work observable, testable, awaitable, and able to propagate exceptions correctly.

4:2414,682 views543 likes
Video

Stop Using the var Keyword!

Explicit C# types can reduce the mental effort of understanding inferred variables, while target-typed constructor syntax offers a concise compromise.

2:426,439 views223 likes
Short

Stack vs. Heap in .NET

Git stash temporarily saves uncommitted changes, restores a clean working directory, and lets you reapply selected work later.

1:003,319 views147 likes
Video

Should LINQ Be Banned from C#!?

Microsoft's AI Smart Components add clipboard-driven form filling, suggested combo-box options, and sentence autocomplete to .NET web interfaces.

3:201,519 views64 likes
Short

Immutability in .NET just got a LOT easier

C# records provide value-based equality, concise declarations, useful printing, deconstruction, and immutable copying, while record structs offer value-type behavior.

0:56953 views41 likes
Video

You Should Probably Stop Using Task.Wait in C#

EF Core's `AsSplitQuery` avoids Cartesian explosion by loading sibling relationships with separate SQL queries and combining the results.

2:122,335 views64 likes
Video

Should you await Inside Your C# Loops?

EF Core lazy loading can silently create N+1 database queries, while eager loading or targeted projections can retrieve data more efficiently.

3:283,867 views181 likes
Short

How to Create a Custom HttpClient Logger (2024)

A custom `IHttpClientLogger` can replace verbose default HTTP client logs with focused request, response, and failure information.

1:29829 views27 likes
Video

Are People Wrong About .NET?

Common startup objections to .NET are challenged through its cross-platform support, open-source ecosystem, deployment flexibility, performance, and modern tooling.

2:571,340 views61 likes
Short

How has .NET not had this before!?

C# collection expressions simplify array and list creation, add spread syntax, and can support custom collection types through a builder attribute.

1:00458 views9 likes
Short

Better C# Anonymous Functions & Lambdas

A playful Blazor movie-trailer riff contrasts .NET web development with MVC, postbacks, state, JavaScript, and jQuery.

0:42476 views13 likes
Short

Alias Any Type in C# 12

C# pattern matching with `is null` and `is not null` avoids misleading results from overloaded equality operators.

1:56808 views30 likes
Video

C# Has New Primary Constructors

CodeSnap creates customizable, theme-aware screenshots of selected code directly inside VS Code.

2:52774 views34 likes