Click here to Skip to main content
15,885,141 members
Everything / Programming Languages / C#

C#

C#

Great Reads

by Wonde Tadesse
The other option will be to use Update Panel ASP.NET control as much as possible. It helps to retain the current position on the page whenever a postback happens to the page.
by Alex Pumpet
A simple program for comparing table data from two sources - SQL databases, Excel, CSV or XML-files
by Dr. WPF
.NET 3.5 SP1 is here! It's time to break out your DirectX skills. This article provides the information necessary to get started using a new DirectX interop feature in WPF called D3DImage.
by John Atten
OWIN, Katana and Middleware Pipeline in ASP.NET

Latest Articles

by honey the codewitch
How to validate fields for things like data entry applications.
by Yevgeniy Shunevych
An introduction to Atata C#/.NET web UI test automation full-featured framework based on Selenium WebDriver
by honey the codewitch
Scraping the web is easy with Visual FA. Here's an example of how.
by Zijian
Reusable codes for JWT security in business applications

All Articles

Sort by Updated

C# 

12 Mar 2024 by Dev Leader
Learn how to use Polly in C# to handle faults and retries with ease! Check out three code examples showcasing different use cases of Polly in C#!
6 Mar 2024 by Dev Leader
Use cases for implicit operators in C# and examples to illustrate their practical application
5 Mar 2024 by Dev Leader
Learn how to use BenchmarkDotNet to effectively create and run benchmarks on your C# code. Dig into where you have opportunities to optimize your C# code!
1 Mar 2024 by Dev Leader
In this article, I’ll provide you with a high-level overview of Dependency Injection and Scrutor in C#.
1 Mar 2024 by Dev Leader
In this article, I’ll provide you with 4 simple code examples illustrating how reflection works in C#.
26 Feb 2024 by DavesApps
Floating point math accumulates errors, requiring precision adjustment for equality
17 Feb 2024 by Dev Leader
Access Google Sheets via C#; Start simple, optimize later!
17 Feb 2024 by Brows App
XML and JSON have long been the configuration formats of choice in the .NET ecosystem. For something entirely different, continue reading.
15 Feb 2024 by Dev Leader
Learn what the Command Pattern in C# is and the design principles it follows. Understand the pros and cons!
15 Feb 2024 by Dev Leader
Origin and principles of Memento Pattern in C, and different components & steps to implementation!
15 Feb 2024 by Dev Leader
Learn about the pipeline design pattern in C#, discover how to create and chain pipeline stages and get code examples, tips, and use cases for this design pattern
15 Feb 2024 by Dev Leader
CQRS pattern in C#, clean architecture for better software development, code examples, best practices
15 Feb 2024 by Dev Leader
How to leverage WebApplicationFactory in ASP.NET Core for testing
15 Feb 2024 by Dev Leader
Integrate Unit of Work Pattern in C# with Clean Architecture for efficient programming, benefits and C# code examples
2 Jan 2024 by Mayur V Lohite
How to check session timeout by using ActionFilters in MVC
12 Dec 2023 by DavesApps
The article discusses the debate over using C#'s var keyword versus explicit typed variables, highlighting potential issues with overuse of 'var' that can lead to code misunderstandings, readability challenges, and bugs.
10 Dec 2023 by Dev Leader
In this article, we'll look at building a flight booking app using vertical slice architecture.
22 Nov 2023 by Dev Leader
A tutorial on unit testing in Blazor development that discusses code quality and catching errors early in the software development process.
22 Nov 2023 by Dev Leader
Check out these examples of the observer pattern in C#! Learn how the observer pattern in C# can simplify the usage of events in your next project!
21 Oct 2023 by Dev Leader
Change a picture into ASCII art using your own C# program
11 Sep 2023 by Aram Tchekrekjian
More about pattern matching types with a usage example for each type
7 Sep 2023 by Tragdor
A quick lesson in LINQ and dynamic Lambda statements
14 Aug 2023 by Dev Leader
In this blog post, we’ll explore the concept of async lazy initialization in C#
8 May 2023 by ToughDev
How to identify used and unused resources in VS Project Resources.resx file
14 Feb 2023 by Dev Leader
A simple solution that you can implement to help improve your experience with async void event handlers, especially when it comes to exception handling
11 Feb 2023 by Dev Leader
Tips to easily access .NET record type
6 Feb 2023 by Dev Leader
Problem with async void and a solution for it
25 Jan 2023 by Dev Leader
Use the "Python for .NET" package as a way to call Python from C# code
22 Jan 2023 by Dev Leader
How Tasks, Threads, and BackgroundWorkers operate at high level
21 Jan 2023 by Dev Leader
Jumpstart app with Autofac
17 Oct 2022 by Aram Tchekrekjian
In this tutorial, we will learn how to implement logging with Serilog in ASP.NET Core Web API.
15 Oct 2022 by SleepyCrat
A quick tutorial showing how to use .NET worker service to watch a directory for new files and read them
22 Sep 2022 by Chris_Green
It all started with an email sent to a daemon.  A windows service hosting two modules, each of which monitors an inbox for automation, dutifully ignored warnings from IT that basic authentication for O365 would be switched off in several months. This is how we solved it.
10 Aug 2022 by Jason Sultana
How to add configuration to Web API and other project types
21 Feb 2022 by Illya Reznykov
How to update EmailMessage properties that don't have public setters
17 Feb 2022 by Aram Tchekrekjian
How to apply JWT Access Tokens and Refresh Tokens in ASP.NET Core Web API 6
29 Dec 2021 by Jason Sultana
I upgraded an old project from .NET Core 2.1 to .NET 6. Here's what broke.
26 Sep 2021 by Jason Sultana
Protecting an ASP.NET Web API from XSS
15 Aug 2021 by Vlad Neculai Vizitiu
A discussion of "init" keyword introduced in C# 9
31 Jul 2021 by Jason Sultana
Using builder pattern to help unit testing a service with more than just a couple of dependencies
24 Jul 2021 by SleepyCrat
How to secure a website using Firebase, Angular 8 and ASP.NET Core 3.1
21 Jul 2021 by Jeremy Likness
In this blog post I look at what GraphQL is, share benefits and challenges, review the current .NET ecosystem, and walk you through some hands-on examples.
21 Jul 2021 by Jeremy Likness
This article walks you through my project Planetary Docs, a repository that showcases a full application that supports Create, Read, Update, and Delete operations (CRUD) using Blazor (Server), Entity Framework Core and Azure Cosmos DB.
21 Jul 2021 by Jeremy Likness
In this article I demonstrate multi-tenancy in a Blazor Server app
21 Jul 2021 by Aram Tchekrekjian
In this tutorial, we will learn how to connect Android with ASP.NET Core Web API.
21 Jul 2021 by RmauroDev
Handle API Key authentication with only three lines of code extending native Authentication mechanism
21 Jul 2021 by Jeremy Likness
Two methods and their comparison for Autocomplete pattern which is used to make it easier for users to select items from a long dropdown list
21 Jul 2021 by Vlad Neculai Vizitiu
Creating a zip archive on demand to be served via an API endpoint
12 Jul 2021 by Rob Kraft
Average programmers get the job done. Excellent programmers get the job done too, but the code of excellent programmers lasts longer and is easier to change to meet future requirements. Below is an example of upgrading average code to excellent code.
2 Jul 2021 by Lee P Richardson
Asynchronous streams, the real world problem they help us solve, and some common pitfalls
20 Jun 2021 by Shivprasad koirala
How can we mark a method as deprecated?
16 Jun 2021 by Shivprasad koirala
This blog will discuss the difference between server.transfer and response.redirect.
5 May 2021 by Carlos Conceição
Current features of NSimpleOlap library
3 May 2021 by Gaston Verelst
More readable Domain Specific Language in F#
22 Apr 2021 by Carlos Conceição
NSimpleOlap is embeddable .Net OLAP library for use in console, desktop, or other types of applications.
18 Feb 2021 by Lee P Richardson
Cake V1.0 is a more robust technique for writing DevOps in a language the whole team can understand.
24 Jan 2021 by YawerIqbal
Tips to query audit history
11 Nov 2020 by DotNetLead.com
Drag and drop behaviour in WPF
8 Nov 2020 by DotNetLead.com
This article shows you how to add Windows Authentication to Angular and .NET Core Web API projects.
26 Oct 2020 by Matteo Prosperi
In this blog post, I complete my “template-based card image generator” project.
26 Oct 2020 by Matteo Prosperi
How, why, when and how to create your own DynamicObject in .NET
10 Oct 2020 by Sandeep Mewara
An optimization programming technique
1 Sep 2020 by Jin Vincent Necesario
JavaScript Map object collection
27 Aug 2020 by Ricardo_Torres_Torres
Learn to create an API in .NET Core
24 Aug 2020 by Sergi Ortiz Gomez
Simple function to validate the ABN for Australian's trade
23 Aug 2020 by Jin Vincent Necesario
In this article, we'll explore the world of C# attributes.
9 Aug 2020 by Lee P Richardson
Which SPA technology should you use: Blazor WebAssembly or something more mature like Angular, and why?
8 Aug 2020 by Vlad Neculai Vizitiu
Mocking/stubbing lambda expressions to have a bit more control over our unit tests
31 Jul 2020 by Chinmoy Mohanty
How to programmatically make(fake ;)) HTTP Requests
31 Jul 2020 by Chinmoy Mohanty
How to upload/download a file using WCF REST service in .NET 3.5
21 Jul 2020 by Jeremy Likness
Learn how to parse complex expression trees, and even modify them to alter IQueryable results.
19 Jul 2020 by Sandeep Mewara
See with a working demo how SignalR works and how it can be used
30 Jun 2020 by Sandeep Mewara
Evaluating the effect of using single vs multiple instances of HttpClient
3 Jun 2020 by Jeremy Likness
A primer on using LINQ to wring strongly typed queries directly in code
1 Jun 2020 by Lee P Richardson
This post is the story of how to generate an unauthenticated client.
1 Jun 2020 by gmtzgtz
How to write a LINQ statement with multiple joins
22 May 2020 by Vlad Neculai Vizitiu
FileSystem Syncher
21 May 2020 by Vlad Neculai Vizitiu
Null-object pattern in C# 8
15 May 2020 by Jeremy Likness
How to use EF Core and Cosmos DB with Blazor WebAssembly
2 Apr 2020 by Rahman Masudur
Few tricks about using a Resource Dictionary in WPF
7 Mar 2020 by Rob Kraft
The benefit of this approach is that you can then regularly scan your entire code base for the use of .ExecuteReader and .ExecuteNonQuery knowing that there should be no cases of those methods, other than the exception cases you expect.
4 Mar 2020 by Lee P Richardson
How to provide strongly typed, cross platform, dependency managed access to all 2,935 Azure CLI commands in C#
2 Mar 2020 by Rion Williams
C# local functions and how they can be used to make code more readable
1 Mar 2020 by Bahrudin Hrnjica
Notebook completely implemented on .NET platform using C# Jupyter Notebook and Daany
18 Feb 2020 by SleepyCrat
Create a small "minigame" using asp .net core 3.0, Angular, and websockets implemented using vanilla javascript.
9 Feb 2020 by Vlad Neculai Vizitiu
Hello and welcome, In this post, we are going to talk about how we can automate part of the windows desktop environment using AutoItX. What is AutoItX? Before we can talk about AutoItX first we need to talk a little bit about AutoIt.
22 Jan 2020 by Jeremy Likness
Blazor Server and Blazor WebAssembly (client) don't store state by default, resulting in a subpar user experience. This article tackles solutions to the problem.
10 Jan 2020 by Jeremy Likness
WebAssembly now lives outside of the browser thanks to the WebAssembly System Interface (WASI) and runtimes like Wasmer and Wasmtime. Learn how to build and run your own WASI modules without leaving your favorite browser.
2 Jan 2020 by Rion Williams
New C# 9 features
5 Dec 2019 by Bahrudin Hrnjica
Predictive maintenance on .NET platform
5 Dec 2019 by 10xlearner
A post on how to format CPP, C, JavaScript and other stuff
22 Nov 2019 by Jeremy Likness
Migrate from Medium to Hugo
21 Nov 2019 by Jeremy Likness
Learn how durable entities provide explicit management of state in serverless applications and guarantee operations are safe to execute without concurrency conflicts.
21 Nov 2019 by Jeremy Likness
A look at the latest Azure SDKs for .NET with a sample .NET Core app that uses the Cosmos DB SDK and LINQ to iterate over documents with a dynamic schema.
21 Nov 2019 by Jeremy Likness
Add dynamic search to a static Hugo website with custom templates to generate JSON and JavaScript to parse the results.
20 Nov 2019 by Jeremy Likness
Durable functions enable implicit and explicit state management for serverless workflows and accommodate a variety of patterns. A new addition, the HTTP task, helps manage interactions with HTTP endpoints including error handling and support for long polling.
20 Nov 2019 by Jeremy Likness
Advanced Blazor techniques are covered such as sharing Razor class libraries between a Blazor WebAssembly project and Blazor server-side. Shows how to reference embedded resources like JavaScript libraries, debug on server-side then deploy as client-side and debug in the browser.
16 Nov 2019 by Bahrudin Hrnjica
In this article, we are going to explore the main features in the new C# Juypter Notebook.