This website contains all the asp.net and c#.net tutorials:
Posts by category
- Category: AI & Azure
- Category: ASP.NET (Web Forms & MVC)
- Category: ASP.NET Core
- BackgroundService vs IHostedService in ASP.NET Core (.NET 10)
- CORS in ASP.NET Core: Allow Localhost, All Origins and Fix “Blocked by CORS Policy”
- Options Pattern in ASP.NET Core: Bind, Validate and Reload appsettings.json (.NET 10)
- Minimal API Validation in ASP.NET Core (.NET 10): AddValidation, DataAnnotations and 400 Errors
- Global Error Handling in ASP.NET Core with IExceptionHandler and ProblemDetails
- Entity Framework Core Tutorial for Beginners (.NET 10 + SQL Server)
- Minimal APIs vs Controllers in ASP.NET Core (.NET 10): Tested Side by Side
- Middleware in ASP.NET Core: Write Custom Middleware and Get the Order Right
- Transient vs Scoped vs Singleton in ASP.NET Core: DI Lifetimes Explained (.NET 10)
- JWT Authentication in ASP.NET Core Web API (.NET 10): Step by Step
- Build a CRUD Web API with ASP.NET Core, EF Core and SQL Server (.NET 10)
- OpenAPI in .NET 10: Add Scalar (or Swagger UI) to an ASP.NET Core Web API
- How to Upgrade .NET 8 to .NET 10: ASP.NET Core Step by Step
- What’s New in .NET 10: 8 Features C# and ASP.NET Core Developers Should Use
- .NET 8 and .NET 9 End of Support (November 10, 2026): What It Means and How to Move to .NET 10
- .NET Core Interview Questions and Answers (2026, .NET 10)
- Category: Blazor
- JavaScript Interop in Blazor: Call JS from C# and C# from JS
- Blazor Component Lifecycle: The Real Call Order in .NET 10
- Blazor Forms and Validation with EditForm (.NET 10)
- Blazor Components and Parameters (with Examples) in .NET 10
- Blazor QuickGrid Tutorial: Sorting, Filtering and Paging (.NET 10)
- Blazor Render Modes Explained: Static SSR, Interactive Server, WebAssembly and Auto (.NET 10)
- Blazor Tutorial for Beginners: Build Your First Blazor Web App in .NET 10
- Category: C#
- xUnit vs NUnit vs MSTest: Which C# Test Framework to Pick
- HttpClient Timeout in C#: Default Value and How to Change It
- Add a Bearer Token to HttpClient in C# (Header, Handler and Refresh)
- HttpClient vs IHttpClientFactory in C#: Avoid Socket Exhaustion
- Extension Members in C# 14: Extension Properties and extension Blocks
- System.Text.Json vs Newtonsoft.Json: Which Should You Use in 2026?
- Collection Expressions in C#: [ ] Syntax, Spread .. and Target Types
- How to Call an Async Method from a Sync Method in C# (Without Deadlocks)
- Primary Constructors in C#: Examples, DI and Inheritance
- Distinct and DistinctBy in C#: Remove Duplicates from a List
- CancellationToken in C#: Cancel Tasks, Timeouts and HttpClient Calls
- LINQ Join in C#: Inner, Left, GroupJoin and Multiple Keys
- Unit Testing in C# with xUnit: A Beginner’s Guide
- LINQ GroupBy in C#: Group, Count and Sum a List
- Nullable Reference Types in C#: Enable Them and Fix the Warnings
- Pattern Matching in C#: is, switch Expressions and Property Patterns
- HttpClient in C#: GET, POST JSON, Headers, Timeouts and IHttpClientFactory (.NET 10)
- Record vs Class vs Struct in C#: Differences and When to Use Each (.NET 10)
- System.Text.Json in C#: Serialize and Deserialize JSON (.NET 10 Examples)
- async and await in C# Explained (with Real Examples on .NET 10)
- Run a C# File Without a Project: dotnet run app.cs in .NET 10
- LINQ in C#: Where, Select, OrderBy, GroupBy and Join with Real Examples
- How to Check .NET Version: SDK, Runtime, global.json and .NET Framework
- What’s New in C# 14: Every Feature With Runnable Examples
- How to Send Email with Attachment in C# (MailKit and System.Net.Mail)
- Delegates in C#: Callbacks, Func, Action, Predicate and Multicast Delegates
- Events in C#: Build an Order Service Step by Step (.NET 10)
- Multiple Inheritance in C#: Interfaces, the Diamond Problem and Composition (.NET 10)
- How to Convert int to double with 2 Decimal Places in C#
- How to Convert Int to Hex String with Leading Zeros in C#
- How to Add Leading Zeros to a String or Number in C#
- How to Convert String to Int with Leading Zeros in C#
- How to Get the First Character of Each Word in a String in C#
- C# Convert Null to int: Nullable int, ?? 0, Convert.ToInt32 and DBNull
- Hashtable in C#: Add, ContainsKey, Remove, Loop and Dictionary (.NET 10)
- Tuple in C#: Named Tuples, Return Multiple Values and Deconstruction (.NET 10)
- ArrayList in C#: Add, Sort, Search, Casting and List<T> (.NET 10)
- Enum in C#: Declare, Convert, Flags and JSON (.NET 10)
- Dictionary in C#: Add, Read, Loop, Sort and Update (.NET 10)
- C# Array: How to Declare, Use and Add Values to Arrays in C#
- List in C#: Create, Add, Remove, Search and Sort List<T> (.NET 10 Examples)
- Dispose and Finalize in C#: IDisposable, Finalizers and SafeHandle (.NET 10)
- Interface in C# with Real-Time Example
- Abstraction in C#: Abstract Classes, Interfaces and a Real Example
- Encapsulation in C# with Real-Time Example
- Inheritance in C#: A Field Guide with Real Examples (.NET 10)
- Constructor in C#: Every Type with Real Examples (.NET 10)
- Anonymous Method in C#: Syntax, Closures, Events and Lambdas (.NET 10)
- How to Get the First and Last Day of the Month in C#
- Struct in C#: Build a Value Type Step by Step (.NET 10)
- Abstract Class in C#: Build a Shipping Calculator Step by Step (.NET 10)
- Partial Class in C#: Syntax, Partial Methods and C# 14 Partial Members
- Namespace in C#: File-Scoped, using and global using (.NET 10)
- ToString in C#: Override It and Format Numbers, Dates and Enums (.NET 10)
- Boxing and Unboxing in C#: Examples, InvalidCastException and Generics (.NET 10)
- Try Catch in C#: Catch, Finally, Filters and Rethrow (.NET 10 Examples)
- Divide by Zero Exception in C#: DivideByZeroException, Infinity and NaN (.NET 10)
- Method Overriding in C#: virtual, override, base and new (.NET 10)
- Type Casting in C#: A Program to Demonstrate Every Conversion
- Method Overloading in C# (With Real-Time Examples)
- Switch Case in C#: Statement, Expression and Patterns (.NET 10)
- Do-While Loop in C#: Build a Menu Loop Step by Step (.NET 10)
- foreach Loop in C#: Build a Sales Report Step by Step (.NET 10)
- While Loop in C#: Syntax, break, continue and Input Examples (.NET 10)
- Factorial Program in C#: Loop, Recursion, LINQ and BigInteger
- for Loop in C#: Build a Sales Grid Step by Step (.NET 10)
- Functions in C#: Methods, Parameters, ref/out and Local Functions (.NET 10)
- Variables in C#: Declare, var, const vs readonly and Scope (.NET 10)
- Data Types in C#: Sizes, Ranges, Value vs Reference Types (.NET 10)
- OOPs Concepts in C# with Real Examples (.NET 10)
- What Is C#? A Beginner’s Guide to C# 14 and .NET 10
- Prime Number Program in C#: Check, List and Sieve Primes
- How to Reverse a String in C# (7 Methods with Examples)
- How to Swap Two Numbers in C# (With and Without a Third Variable)
- C# Program to Add, Subtract, Multiply and Divide Two Numbers
- How to Delete a Folder in C# (With Files, Subfolders or Only Empty Ones)
- How to Delete a File in C# (One File, All Files, by Extension or Age)
- Leap Year Program in C#: IsLeapYear and the if/else Rule
- Folder Browser Dialog in C#: Pick, Show in a TextBox, Multi-Select
- 42 C# Interview Questions for Experienced Developers (2026, with Proof)
- 40 C# Interview Questions for Freshers (2026, with Answers)
- How to Format a Number with Commas and Decimals in C#
- How to Check If a String Contains a Character in C#
- How to Compare Two Strings Character by Character in C#
- How to Compare a String with Multiple Values in C#
- How to Convert a List to a Comma Separated String in C#
- C# String Array Contains: Check if an Array Contains a Value
- How to Convert a Number with Comma to Decimal in C#
- Convert Char Array to String in C# (6 Ways, .NET 10)
- How to Convert String to Byte Array in C#?
- How to Sort an Array in C# (Ascending, Descending, Objects, LINQ)
- How to Reverse an Array in C# (8 Methods with Examples)
- Dynamic Array in C#: Build a Growing List Step by Step
- How to Convert Object to JSON Without Escape Characters in C#
- How to Convert String to Double in C#
- How to Generate Random Numbers in C# Without Repeating (Within a Range)
- C# Check if a String Is Null or Empty (IsNullOrEmpty vs IsNullOrWhiteSpace)
- How to Check for Null in C# (is null, ?., ??, Empty Objects)
- How to Convert Int to Binary String with Leading Zeros in C#
- How to Get the First N Characters of a String in C# (Plus First and Last Letter)
- Difference Between String and StringBuilder in C# (With Benchmarks)
- How to Remove a Character from a String in C# (Replace, Remove, Regex)
- How to Convert String to DateTime in C#
- C# Class Naming Conventions: PascalCase, Prefixes and Suffixes (.NET 10)
- How to Convert a String to Int Without Parse in C#
- How to Remove the Last Word from a String in C#
- C# Variable Naming Conventions: Locals, Parameters and Rules (.NET 10)
- How to Remove the Last Character from a String in C# (and the First)
- C# Constant Naming Conventions: PascalCase, Not ALL_CAPS (.NET 10)
- C# Boolean Naming Convention: Variables, Properties and Methods (.NET 10)
- C# Naming Conventions: The Complete Guide with Examples
- C# Enum Naming Conventions: Rules and Examples (.NET 10)
- C# Field Naming Conventions: _camelCase, s_ and PascalCase (.NET 10)
- C# Method Naming Conventions: PascalCase, Async and Try (.NET 10)
- How to Create a GUID in C# (.NET 10 Examples + Video)
- Disable or Hide Minimize, Maximize and Close Buttons in C# Windows Forms
- C# Create Folder If Not Exists (Directory.CreateDirectory Guide)
- Category: Visual Studio & VS Code