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 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 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 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 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 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 Double to String in C#In this guide, we will learn how we can convert a double into a string in C#. How to Connect to an Access Database in C#We will learn how to connect to an Access database in C# in this article. How to Send Email With Attachment in C#In this article, we'll learn how to send an email with attachment in C#. How to Convert String to Double in C#This tutorial demonstrates how to convert a string in C# to a double type. How to Split a String on Newline in C#We'll look at how to split a string on newline in C# in this tutorial. How to Compare Arrays in C#In this article, we'll learn how to compare and check whether two or more arrays are equal in C#. How to Simulate a Key Press in C#In this article, We'll learn an easy and simple way to simulate a keypress in C#. How to Inherit From Multiple Classes in C#In this article, we'll learn, with the help of implementation, how to inherit from multiple classes with the help of interfaces in C#. How to Get Double Value by Dividing Two Integers in C#This tutorial introduces the division of two integers. In C# programming, the quotient depends on the type of operands. In this article, our major concern of discussion is all about the division of two integers and getting results as a double data type. How to Crop an Image in C#In this tutorial, learn the different methods of drawing and editing an image in C# with examples. Use the Graphics.DrawImage() method.