This example shows how to do a ascending and descending sort of list with Linq: Source Code:...
Archive - June 2018
Get Max Value From a Linq List in C#
Finding the max or min value in a sequence can be solve using the LINQ Methods. In it simplest. ...
Sort a List in C# (DESC and ASC)
Sorting a list of simple types like int, string, char etc. is straight forward. Just invoke the...
Program to find top two maximum numbers in C#
The program finds find top two maximum numbers in the given array. Finding process works without...
C# Program to Convert Centimeter to Feet and Inches
1 inch is equal to 2.54 centimeter, so 1 centimeter is equal to 0.3937 inches Therefore, n...
C# DataTable Examples
The DataTable is a central object in the ADO.NET library. Other objects that use the DataTable...
C# Loop Examples
Loops are structures that control repeated executions of a block of statements. • C# provides a...
C# – Get Filename From Path with Example
In this article, we’ll learn: How to get all file name from folder in C#. Path...
Export Data From RichTextBox to MS Word in C#
In this article, I’ll show you How to Export data into Word Document using C# Windows Form. And you...
Find The Second Largest Number in Array Using C#
In this tutorial, we’ll find the second largest element in an array. It is easy to find the...