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 Connect to SQL Database on C#This tutorial demonstrates how to connect to a SQL database on C# using SqlConnection object. How to Calculate MD5 Hash From a String in C#This tutorial teaches how to calculate MD5 hash from a string in C#. How to Convert String Array to String in C#In this article we'll learn how to convert a string array to a single string in C#. How to Sort a List by a Field in C#In this article, we will show various methods on how to sort a list by a field in C#. How to Generate a UUID in C#In this article we'll talk about how to generate a UUID in C#. How to Declare an Array of Objects in C#In this article we'll learn how to declare an array of objects in C#. How to Play an Mp3 File in a Windows Form Application in C#This post will demonstrate how to build a simple C# mp3 player with the use of your C# Windows form application and a Windows Media Player. How to Obfuscate Your Code in C#In this article, We're going to explore how to obfuscate code in C# so that hackers can't read or understand. How to Format a String as a Telephone Number in C#This article explains how to format a string as a telephone number in C#. How to Convert String to Type in C#In this article discusses how to convert string to type or get the type of data in C#. How to Convert Int to Byte in C#In this post, we'll look at few different techniques to convert Int to Byte in C#. How to Sum Up an Array of Integers in C#In this tutorial, learn the different methods of summing up an array of integers in C# with examples. Use the sum(), Array.foreach, and the Enumerable.Aggregate() method. How to Sorting List in Alphabetical Order in C#This article shows how to sort a list alphabetically in C#. How to Start a Process in C#In this article, we'll look at numerous ways to start a process in C#. How to Set null in DateTime in C#In this article, you'll learn about the basics of DateTime object and how to utilize it in C# to assign a null value. How to Convert Char to Int in C#This article tackles about the different methods in C# to convert char datatype to int datatype. How to Change Label Text in C#This article teaches how to change label text in C#. How to Deserialize XML to Object in C#In this tutorial, learn the different methods of deserializing an xml to C# object with examples. Use the paste special feature of Visual Studio, xsd tool, and type the equivalent class in C#. How to Create a Comma Separated List in C#This tutorial demonstrates how to create a comma-separated list from an IList or an IEnumerable by using Join, LINQ or StringBuilder How to Set Up C# on Mac OSIn this article, learn the process of setting up the C# language for development on Mac OS. How to Set Up C# for Development on LinuxThis article explains how to set up C# language for development on Linux. How to Read and Write INI Files in C#This tutorial teaches how to read and write INI files in C#. How to Convert String Array to Int Array in C#In this guide, we will learn how to convert a string array to an int array in C#. How to Convert Double to String in C#In this guide, we will learn how we can convert a double into a string in C#.