Tag: Csharp

Using GroupBy in LINQ and C#

Below is a sample code snippet demonstrating how to use GroupBy in LINQ and C#. Using GroupBy in LINQ and C# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace GinktageConsoleApp …

How to convert a string to enum in C#?

Below is a sample code snippet demonstrating how to convert a string Eg: “Blue” to Enum value . How to convert a string to enum in C#? using System; using System.Collections.Generic; using System.Data; using System.Linq; …

Is this Possible with Enum in C# ?

The enumeration in C# lets the developers to define a limited set of known values. For example , I can define an enum called Designation as shown below use it in the application. enum Designation …

C#’s var keyword equivalent in VB.NET

This article will explain the keyword “Dim” which is the C#’s var keyword equivalent in VB.NET . In one of my previous blog posts , I explained about 5 things that you cannot do with …

My favorites in .NET

Recently, one of my friends asked me what technology within .NET i like most although he knew what the answer would be. Every software developers or programmers have some kind of preferred programming language or platform …