Interview Question

How to get length of string without using any existing function in C#

Question: Write a program which return a length of string without using any existing function in C#. Answer: using System; namespace consoleProgram { class Program { static void Main(string[] args) { string str = “my name is pramod kumar thakur”;… Continue Reading →

object vs dynamic vs var in C#

In this article we learn the difference between var, dynamic and object keyword in c#.

How to add two datatable in single datatable in C#

In this article we learn how to add two datatable in c#.

What result would print from the following code snippet

Console.WriteLine(“1234”.GetType()); What is output of this code snippet.