Click here to Skip to main content
15,868,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 GabrieleTronchin
In this project, I leverage MailKit to seamlessly manage email communication with a test MailService.
by GabrieleTronchin
ASP.NET API with a Custom SQL Configuration Provider
by Federico Di Marco
An improved JSON configuration provider that allows partial or full encryption of values in appsettings.json
by Akram El Assas
Microservices sample architecture using ASP.NET Core 8, Ocelot, MongoDB and JWT

All Articles

Sort by Updated

C# 

N 29 Mar 2024 by GabrieleTronchin
In this project, I leverage MailKit to seamlessly manage email communication with a test MailService.
N 27 Mar 2024 by GabrieleTronchin
ASP.NET API with a Custom SQL Configuration Provider
13 Mar 2024 by JudyL_MD
Code sample for passing encrypted compressed data between Windows and Android
8 Mar 2024 by Cinchoo
Tip to deserialize JSON to polymorphic classes without type information
21 Feb 2024 by Jo_vb.net
Part 2 of my article about 'Schafkopf' introduces Automated Bidding
20 Feb 2024 by Alexnader Selishchev
Nocode open source CI+CD for ASP.NET apps
16 Feb 2024 by Peter Sun (247)
Implement ChatGPT API in C# WPF with GPT3.5-turbo
15 Feb 2024 by Lance Ford
Use an IIS module to identify the node that served a request in a web farm environment.
9 Feb 2024 by honey the codewitch
Image Resizer automatically resizes images you drop in a monitored folder based on criteria you give it. It can also change image formats.
6 Feb 2024 by Shao Voon Wong
Solving Fizz Buzz in C# and C++ using six different approaches
6 Feb 2024 by honey the codewitch
Easily convert identifiers from one casing style to another with this simple to use class
4 Feb 2024 by Praveen P R
Create and Validate Custom Polly Resilience Strategies
23 Jan 2024 by honey the codewitch
Easily crack your command line arguments into a dictionary with this code
18 Jan 2024 by Jens Eckervogt
SByte*/Byte* and SByte**/Byte** Conversion
17 Jan 2024 by OriginalGriff
Why switch from the "traditional" BackgroundWorker to a Task? The old way works OK, but the new way generates "tidier" code which keeps stuff together (and needs less code)
12 Jan 2024 by Lance Ford
A walkthrough to enable request/response logging to an ASP.NET web application (or web service) by using an IIS module.
26 Dec 2023 by Federico Alterio
Description of a library that allows to use a porting of Angular Signals in .NET MVVM Frameworks
13 Dec 2023 by FenrisH
Demo of how C++ and C# interoperate
27 Oct 2023 by David_Cui
To introduce a free library to save some tedious work for writing tedious filtering logic
22 Oct 2023 by David_Cui
To introduce a free library to save some tedious work for writing mapping code between entities and DTOs
17 Oct 2023 by Daan Acohen
Effortlessly integrate and leverage OpenAI's text embeddings for enhanced text analysis in your .NET projects.
15 Oct 2023 by Daan Acohen
Discover how to leverage AI capabilities in .NET applications for generating custom images from textual descriptions with ease.
15 Oct 2023 by Daan Acohen
Automate content moderation in .NET with the power of OpenAI's API
13 Oct 2023 by Daan Acohen
Unlock seamless audio transcription capabilities in .NET with OpenAI's API
12 Oct 2023 by Daan Acohen
Seamlessly convert audio messages to text in .NET using OpenAI's API
11 Oct 2023 by Daan Acohen
Explore the streamlined process of creating diverse image variations in .NET applications using OpenAI’s enhanced API functionality.
10 Oct 2023 by Daan Acohen
Easily interact with OpenAI’s API in .NET applications using the ConnectingApps.Refit.OpenAI NuGet package for streamlined, resilient, and loggable calls.
4 Oct 2023 by aniapp_
Use Microsoft.Graph.Auth to work with Azure AD
3 Oct 2023 by Daan Acohen
Simplify and resolve circular dependencies in .NET using the SmartInject NuGet package
30 Sep 2023 by David_Cui
A simple way to contain microservices in class libraries for deployment
29 Sep 2023 by Nish Nishant
Minimal code to copy a base object into a derived instance
28 Sep 2023 by Nish Nishant
Shows how to programmatically stop/exit a WebJob on Azure
27 Sep 2023 by Nish Nishant
Details the additional steps needed to get WebJobs logging to Application Insights.
27 Sep 2023 by Victor Sirghii
On the parent razor page, we add Partial View which will serve as the updatable container. On Ajax calls from the parent page, we update only Partial view content, not the whole page, thus creating a smooth user interaction experience.
25 Sep 2023 by Federico Di Marco
Saving webpages in single self contained files using Selenium Webdriver
25 Sep 2023 by Dario Picca
Save Key and Value in JSONformat using C# and LINQ
20 Sep 2023 by Maniezzo
A couple of lines of code to get the i-j indices of an upper triangular matrix (main diagonal included) from a linerized array.
17 Sep 2023 by Daan Acohen
Exploring the precision differences between .NET's decimal and double types in financial calculations
4 Sep 2023 by Federico Alterio
Elegant replacement for awaiting a limited set of tasks
14 Aug 2023 by Daan Acohen
Explains how to do multiple assertions using the Fluent Assertions library, without multiple validation lines
12 Aug 2023 by Bohdan Stupak
Batching is a nice technique that allows you to handle big amounts of data gracefully. Directory.EnumerateFiles is the API that allows you to organize batch processing for the directory with a large number of files.
10 Aug 2023 by PavanPabolu
Asynchronous and synchronous callback in C# and when to use each of them
16 Jul 2023 by OriginalGriff
I am switching to C# 8 / .NET 7 so I'm recreating my project templates to create suitable versions. And it's not trivial as some things are very different.
14 Jul 2023 by Sauradipta Chaudhury
Connect .NET Web App to Azure Application Insights hosted in Localhost or Azure Web App using the same code. The approach is recommended by Microsoft and is applicable for .NET 6 and above.
26 Jun 2023 by Jo_vb.net
Get started MonoGame and use IceSkater C# project
26 Jun 2023 by Pete O'Hanlon
Rather than littering a razor component with @if (a == b) logic to show items, use render fragments to make a declarative component
11 Jun 2023 by Federico Alterio
How to optionally inject a dependency using Microsoft DependencyInjection container
24 May 2023 by Mirzakhmet Syzdykov
Description of the Lavoro web operating system
24 May 2023 by Mirzakhmet Syzdykov
Engine for .NET cross-platform development
24 May 2023 by Mirzakhmet Syzdykov
Science and programming on working examples
24 May 2023 by Mirzakhmet Syzdykov
Develop programs with open storage using pre-defined format
3 May 2023 by Mark Olbert
How to obtain information on the active display in a Windows UI 3 app
3 May 2023 by Xavier Junqué i de Fortuny
A rational class to extend numeric functionality
30 Apr 2023 by Federico Alterio
Convert an Event-based API to an awaitable pattern API
27 Apr 2023 by DavesApps
Why use volatile keyword with double check lock pattern
24 Apr 2023 by Eligio Morgado H.
Compare two SQL Server databases and show difference in tables and fields
19 Apr 2023 by Malte Klena
Build a StreamReader that can differentiate between ANSI and UTF8 regardless of a byte order mark
17 Apr 2023 by pdoxtader
Very fast image processing without use of unsafe code
15 Apr 2023 by DavesApps
A way to catch / prevent race conditions in multithreaded code
12 Apr 2023 by Bohdan Stupak
A short example of how byte[] misuse may hurt memory consumption
9 Apr 2023 by charles henington
Very simple conversion of bitmap to indexed bitmap
7 Apr 2023 by Kuv Patel
Convert JSON to C# classes in Visual Studio
4 Apr 2023 by Mike Meinz
Demonstrates two functions to retrieve the current Windows System Audio Volume and set Audio Volume.
19 Mar 2023 by Bohdan Stupak
How to perform distributed lock between multiple instances of a microservice with Redlock.Net
16 Mar 2023 by Ali Robot
How to implement a text-to-speech (TTS) application in C# using the System.Speech.Synthesis namespace
16 Mar 2023 by raddevus
Function to help convert null to DBNull.Value for inserting in database
15 Mar 2023 by Alessandro Magistroni
Oauth2 Client with IdentityModel.AspNetCore
13 Mar 2023 by Alessandro Magistroni
How to validate Automapper configuration using AssertConfigurationIsValid
21 Feb 2023 by Jo_vb.net
An extended version of the Dynamic Tab article
17 Feb 2023 by Matthew Dennis
In this tip, we resolve an issue where on certain systems some of the processes were left running so each CodeProject.AI Server start would create more processes, using more system resources.
9 Feb 2023 by Stanko Milošev
How to either migrate to the new XAML designer extensibility or write WPF custom control extensibility model based on .designtools.dll.
7 Feb 2023 by George Swan
A .NET7 version of a Rotated Binary Search method
6 Feb 2023 by roberto bandiera
This work aims to show how to do binary serialization and deserialization of an array of objects in C# with .NET 7.
6 Feb 2023 by shunninghuang
Software named M1.NET which shows the details of decrypting arcade game audio
1 Feb 2023 by adriancs
A tool to prevent spam bot
29 Jan 2023 by Oleg_100
Synchronize access to multiple objects by name (string)
24 Jan 2023 by bipulmgr
This is the project of ASP.NET Core 7 web API in which we can compress the image.
24 Jan 2023 by RickZeeland
A Custom Flat-style Numeric UpDown Control with a simple demo application written in .NET 6
19 Jan 2023 by ISMAIL CAGDAS
How to use MassTransit with RabbitMQ in ASP.NET Boilerplate Framework
17 Jan 2023 by Sufyan S Jabr
All items needed to successfully connect to IBM MQ
16 Jan 2023 by vblover Programmer
Custom DropDownBox with all languages of the world to select a language.Save and reload Selected language using Application Settings
30 Dec 2022 by Graham Wilson
A collection of simple .NET Framework/.NET WinForm controls and utilities.
10 Dec 2022 by Matthew Dennis
An easier way to use locks in C#
29 Nov 2022 by Matthew Dennis
Option Binding for a ConcurrentDictionary that works in NET6 fails in NET7. This is a workaround.
28 Nov 2022 by Oscar K.
Internals, code of using QMString
28 Nov 2022 by thomasardal
Learn about the built-in rate-limiting middleware in ASP.NET Core.
20 Nov 2022 by charles henington
Custom black and white image format
16 Nov 2022 by Zijian
Resolving issues with date picker component in ASP.NET 7 applications.
4 Nov 2022 by Bert O Neill
Provides a developer’s overview on how to get started with using Visual Studio’s User Secrets
24 Oct 2022 by Praveen_Kumar Gupta
How to upload and download documents in a network for an authenticated user after checking permissions
10 Oct 2022 by Mehul Donga
Handle managed (C#) event in managed (C++/CLI)
28 Sep 2022 by Cinchoo
Tip to merge different CSV files into one CSV file using Cinchoo ETL
28 Sep 2022 by Cinchoo
Tip to merging JSON array values to single CSV column
28 Sep 2022 by Cinchoo
Quick tutorial about converting JSON to XML file using Cinchoo ETL
18 Sep 2022 by towaso
A short example on how to create a hierarchical web checklist
13 Sep 2022 by David O'Neil
Create drastic life improvements by completing your Wordle puzzle in minutes instead of days!
8 Sep 2022 by Telegram:@ArastoAhmadi
Tutorial to monitor database changes without using tools and by using a simpler trick
24 Aug 2022 by Avinash A. Dhumal
How to implement IDumpable Interface
16 Aug 2022 by Iulia Pitutiu
This document describes how you can benefit from using Azure files in your .NET web application.