What’s the range of each value data type in C#?

These are the basic data types in C# and their range: Keyword Class Range bool System.Boolean true and false byte System.Byte 0 to 255 sbyte System.SByte -128 to 127 short System.Int16 -32768 to 32767 ushort System.Uint16 0 to 65535 int System.Int32 -2,147,483,648 to 2,147,483,647 uint System.UInt32 0 to 4,294,967,295 long System.Int64 -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 ulong […]

How do I create multiple entry points and specify which one to use?

How do I create multiple entry points and specify which one to use?To create multiple entry points you simply add multiple classes, each with a static Main function: using System;namespace MultipleEntryPoints{   class Class1   {       class Point1      {          [STAThread]          static void Main(string[] args)          {             Console.WriteLine(“This is point 1”);         }      }      class Point2      {         [STAThread]   static void Main(string[] args)         {            Console.WriteLine(“This is point 2”);         }      }      class Point3      {         [STAThread]         static void Main(string[] args)         {            Console.WriteLine(“This is […]

Binding a Repeater control to a jagged array

Binding the Repeater in the code-behind is done just like with any other binding operation. Suppose we have a jagged array named myJagged (which we didn’t initialize with values in this example) and a Repeater named myRepeater: // Initialize the string arraystring[][] myJagged; // Remember to initialize the array with valuesmyRepeater.DataSource = GroupList;myRepeater.DataBind(); While binding the array to the repeater is done the […]