BlackWaspTM

This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

<< Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next >> |
The Object ClassThe 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.
Using the EventHandler DelegateUsing the EventHandler Delegate
When creating custom events, a delegate is declared to control the parameters that the event passes to the subscriber when the event is raised. For simplistic events with no requirement to pass information, the built-in EventHandler delegate can be used.
.NET Assemblies.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.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 DivisionTimeSpan 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.
Convert Integers to Binary, Octal or HexadecimalConvert 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.
Getting the Day Name for a DateGetting the Day Name for a Date
When developing software that displays dates, you may want to show the name of a day such as Monday, Tuesday, etc. The names should be shown in the user's preferred language. This is simple to achieve using either of the methods described in this tip.
Creating Globally Unique Identifiers (GUIDs) in .NETCreating Globally Unique Identifiers (GUIDs) in .NET
It is important in many business systems that items are marked with a unique reference. Often this is a sequential number generated by a database or a code entered by a user. In some situations, these options are not enough so GUIDs may be employed.
Reversing a StringReversing a String
Sometimes it can be useful to reverse the contents of a string, character by character. It can come as a surprise to find that there is no native method to achieve this in the .NET framework. However, it is possible with the use of a character array.
The Specialised CollectionsThe Specialised Collections
The forty-third part of the C# Fundamentals tutorial describes the specialised (or specialized) collection classes. The .NET framework provides five different types of specialised collection, each being optimised for a particular structure or data type.
<< Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next >> |