Tag: c#

How to convert Array to List in C#?

Want to convert array of strings to List of strings in C# ? . Below is a sample code to illustrate this. How to convert Array to List in C#? using System; using System.Collections.Generic; using …

How to iterate over a Dictionary in C#?

Below is a sample code snippet demonstrating how to iterate over a dictionary in C#. How to iterate over a Dictionary in C#? using System; using System.Collections.Generic; namespace GinktageApp { internal class Program { private …

Difference between String and string in C#

When developing an application using C# , one would have noticed the usage of String and string class . In the below example we use 2 string variable string str1 = "Ginktage.com World"; String str2 …

Break vs. continue in C#

Within a for loop or a while loop in C# , you can use break or continue keyword . What is the different between break and continue in C# ? break keyword will cause the …