Practical solutions

C# Howtos How-To Guides

Solve the problem. Keep building. Collection of C# how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Swap Variable Values Without the Use of Temporary Variable in C#This article teaches how to swap variable values without the use of temporary variables. How to Execute Stored Procedure With Parameters in C#This article discusses how to call a stored procedure with parameters in C#. How to Toggle a Boolean Variable in C#This article teaches us the ways in which we can toggle boolean variables in C#. How to Implement a Read-Only Property in C#This article teaches us how to implement read-only properties in C#. How to Convert DataTable to CSV in C#Using C#, this article will walk you through the process of converting a DataTable to a CSV file. How to Check for the Existence of a Dictionary Key in C#This article teaches us how to check or detect if a dictionary key exists in C#. How to Post JSON to a Server in C#This article tells us how to post JSON to a server in C#. How to Get the Value of ListBox Selected Item in C#This article teaches how to get the value of selected item in a listbox as string in C#. How to Filter a DataTable in C#This tutorial shows how to filter a datatable in C#. How to Draw Circles in C#This article teaches us how to draw circles with System.Drawing in C#. How to Create a Progress Bar in C#This tutorial summarizes how to create and use a progress bar in C#. How to Override a Static Method in C#In this article, we'll learn how to override a static method in C#. How to Obtain a Distinct List Based on One or More Properties in C#This article will discuss the basics of using the Distinct() function in LINQ and obtaining a distinct list based on one or more properties in C#. How to User Authentication Against Active Directory in C#This tutorial delineates how to perform user authentication against Active Directory in C#. How to Convert Image to Byte Array in C#In this article, we'll learn how to convert an image to byte array in C#. How to Write XML Into a File in C#In this tutorial, we will learn how to utilize the C# programming language to put XML into a file. How to Write JSON Into File in C#In this post, we'll learn how to use the C# programming language to construct basic JSON objects and write them to a file. How to Convert Decimal to Double in C#In this article, we'll discuss about converting decimal numbers to double in the C# language. How to Create Excel File in C#Using the C# programming language, we'll learn how to generate an Excel spreadsheet. How to Create a Button Click Event in C#In this article, we'll learn how to create a button click event in C# programming language. How to Sort a Dictionary by Its Keys in C#This tutorial describes how to sort a dictionary by key in C#. How to Reverse an Array in C#This tutorial edifies how to reverse an array in C#. How to Initialize a List With Values in C#This tutorial explains how to initialize a list with string values in C#. How to Count the List Elements in C#This tutorial exemplifies how to count the elements of a list in C#.