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
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
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
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