Data Types

There are 2 types of data types available in C#. Reference Types Value Types Reference Types:  Classes, Interfaces, Delegates etc comes under Reference Types. Value Types:  There are certain Built-In types, which comes under Value Types.  The list is given below. Integral String (Reference Type) Object (Reference Type) Boolean Floating Decimal Integral:  There are several

ReadLine Function & Place Holder

This tutorial will demonstrate the use of ReadLine Function, which resides in Console class.  This function will help you in reading any string, which you will type in the console window.   The sample code for the ReadLine function is given below. using System; public class Program { public static void Main() { string FirstName; string

C# Console WriteLine Example

Every programming language lesson starts with a program called Hello, World!  This program will give you a basic idea about that language.   The dotnet language makes major use of namespaces and classes.  Namespaces are basically a collection of interfaces, classes, delegates, enums, and structures.  The code for the C# dotnet program is given below, which