tutorials

C# Program to input the Number and display the sum of the Digits

Introduction

This program in C# developed using .NET Framework 4.5 and Visual Studio 2013 will demonstrate how to get the input as number and find the sum of digits of the number and display it in the console window.

C# Program to input the Number and display the sum of the Digits

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace GinktageConsoleApp { internal class Program { private static void Main(string[

read more

How to Get the List of All Drives installed in the System using C# ?

If you need to get the list of all drives installed on your system using C# , you can use the DriveInfo class which provides the static method GetDrives.

How to Get the List of All Drives installed in the System using C# ?

Below is a code snippet that iterates through all the drives and provides the necessary information about them.

using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.IO; namespace GinktageConsoleApp { internal class Program { private static

read more

Using SQL “IN” Clause in LINQ Query

When using the SQL Query, we could use the IN keyword to find the item something like this

SELECT * FROM MOVIES WHERE Movie_Name IN ('Thalaivaa', 'Jilla', 'Arrambam')

How to use achieve the similar results when using LINQ?

Using SQL “IN” Clause in LINQ Query

You could use the contains extension method to achieve the similar result as shown in the below code snippet.

string[] MovieNames = new string[] { "Thuppaki", "Thalaivaa", "Jilla", "Arrambam" };string[] CurrentName = new string[] { "Thalaivaa", "Jilla", "Arrambam

read more

How to always save a file in XLS format in Microsoft Excel 2013?

This article will explain how the users can always save the excel workbook in XLS format in Microsoft Excel 2013.

How to always save a file in XLS format in Microsoft Excel 2013?

The users can set the default Save As format of the excel workbook to <a href="http://www.ginktage.com/2013/06/how-to-rank-data-in-microsoft-excel-2007/

read more

How to Compare Two PowerPoint 2013 Presentations?

This article will explain in easy steps on how to compare two Microsoft PowerPoint 2013 presentations quickly.

The Microsoft PowerPoint 2013 offers one of the easiest way to compare the <a href="http://www.ginktage.com/2013/07/how-to-record-and-insert-audio-to-presentation-in-microsoft-powerpoint-2013/

read more