 | Converting an Entire Array to a New Type Sometimes you will want to convert the contents of an entire array from one type to another. Using the .NET framework 2.0, generics and delegates, this process can be achieved without the requirement to manually create looping structures. |
 | Numeric Types, MaxValue and MinValue All of the basic numeric data types include two useful fields named MaxValue and MinValue. In this short article, these two properties are used to show the full range of values that can be held in each of the numeric types. |
 | The Object Class The Object class is a special type that is the base class for all other classes and types, including the value types. It defines a set of methods that are therefore inherited by every other type that is defined within the .NET framework class library. |
 | Creating a Battery Power Status Monitor Sometimes programs need to know the power status of a computer. An example is Windows Update, which often requires a computer to be running on mains power before updates are installed. This article explains how to read the power status and battery life. |
 | Reading Environment Variable Values All Microsoft Windows operating systems include configuration options that are held in environment variables. These contain settings such as default folder paths, user information and computer and operating system details. They can be accessed using C#. |
 | .NET Assemblies The seventeenth part of the C# Object-Oriented Programming tutorial considers .NET assemblies. The building blocks of .NET programs, assemblies are the files that contain all of the code, versioning information and resources for an application. |
 | .NET Namespaces The sixteenth part of the C# Object-Oriented Programming tutorial describes the use of namespaces. Namespaces allow classes, structures and other items to be grouped and organised and remove the possibility of class-naming conflicts. |
 | TimeSpan Multiplication and Division The TimeSpan structure is great for storing a period of time that can be expressed in small values, such as milliseconds or ticks, as well as large durations such as months and years. Unfortunately the structure does not directly support multiplication. |
 | Getting the Current Operating System Version Each new version of Microsoft Windows includes an updated set of application programming interfaces (APIs). To ensure that a program only accesses API functions that are available, it is important to be able to detect the operating system version in use. |
 | Convert Integers to Binary, Octal or Hexadecimal For readability it is usual to present integer values using the decimal numbering system. However, sometimes the binary, hexadecimal or octal number bases are more appropriate. This tip shows how to convert a value to one of these alternatives. |
|
|