|
C#
Programming: Namespaces and the Base Classes Part 7 - Mathematical
Functions
Mathematical
functions are included in the Math class, which is part of the System
namespace. You don't therefore need to add any references to your
project to make use of these functions.
|
|
C#
Programming: Namespaces and the Base Classes Part 6 - Accessing the
Register
In this
section we'll present a code sample that enumerates registry keys and
reads their values. There are several classes used to access the
registry, of which we will use two: Registry, and RegistryKey, both of
which are in the Microsoft.Win32 namespace.
|
|
C#
Programming: Namespaces and the Base Classes Part 5 - Browsing the
Internet
Retrieving
a file from the Internet really involves two processes: requesting the
file, and reading it through a stream.
|
|
C#
Programming: Namespaces and the Base Classes Part 4 - File and Folder
Operations
One of
the most common things you'll need to do is access the file system, to
read and write to files, to move or copy files around, or to explore
folders to check what files are there.
|
|
C#
Programming: Namespaces and the Base Classes Part 3 - Manipulating Dates
and Times
Our
first samples will demonstrate how to access the date-time functionality
provided by the base classes. There are two classes of relevance here:
DateTime and TimeSpan, both of which are in the System namespace.
|
|
C#
Programming: Namespaces and the Base Classes Part 2 - The Base Classes
As we've
remarked there are a huge number of base classes, and there are also a
large number of namespaces that contain these classes. We cannot hope to
give comprehensive coverage in this chapter, but we'll give a quick
summary of some of the more useful namespaces here.
|
|
C#
Programming: Namespaces and the Base Classes Part 1 - Introduction
In this
chapter we're going to look at the base classes - the vast number of
.NET classes that Microsoft has written for you, and also namespaces -
the system by which classes are grouped together.
|