Tag Archives: C#

Jagged Arrays C#

A jagged array is an array whose elements are arrays. The elements of a jagged array can be of different dimensions and sizes. A jagged array is sometimes called an “array of arrays.” The following examples show how to declare, … Continue reading

Posted in Language Basics | Tagged , , | 1 Comment

Alert Message using C#

Usually we generate Alert Message using Java Script in our .aspx page. But we can also generate an Alert Message from out Code behind page using C# and JavaScript. Below is the code which will display the Alert Message up … Continue reading

Posted in Language Basics | Tagged , | Leave a comment

Shut Down, Restart and Log Off PC using .NET, C#

Using .NET and C#.NET, We can perform Shut Down, Restart and Log off operation on current PC. In .NET Framework we have a namespace Using System.Diagnostics which has the required class and methods to perform these operations from a .NET … Continue reading

Posted in Language Basics | Tagged , , , , , | Leave a comment

Difference between Convert.ToString() and .ToString() in C#

Well most of us might have seen Convert.TOString() and .ToString() in C# code. Baically both are used to convert a value to a String but there is a basic difference between them. When we have an NULL object, Convert.ToString(Object); handles … Continue reading

Posted in Language Basics | Tagged , , | Leave a comment

Difference between String and string in C#

For many C# newbies, it is a common confusion by seeing String and string. Both of them will be used as per individual preference and need. String comes from a class System.String in .NET Framework where as string is an … Continue reading

Posted in Language Basics | Tagged , | Leave a comment