Event-Driven Programming (Autosaved)
Event-Driven Programming (Autosaved)
Programming
Event-Driven Programming
C# Compiler
NATIVE CODE
Cntd.
Base Class Library (BCL)
Base Class Library encapsulates a large number of common
functions which can be used by the developers. It is the core component of
the .NET Framework, which provides a set of classes, types, and namespaces
that form the foundation for building .NET applications.
CompanyName.ApplicationName
A class is therefore identified, for example, as
QueCertifications.Exam1.ExamQuestions, where
QueCertifications is the unique name for a company,
Exam1 is a unique application within that company, and
ExamQuestions is the name of a specific class.
QueCertifications could have another class with the
same name, ExamQuestions, as long as it belongs to a
different application, such as QueCertifications.Exam2.
The objective of namespaces is to keep the complete
naming hierarchy unique so that there are no naming
conflicts.
A namespace is a string in which dots help create
a hierarchy. In the namespace
QueCertifications.Exam1, Exam1 is called a child
namespace of QueCertifications. You could organize
classes at two levels here: at the level of
QueCertifications and also at the level of Exam1. You
can create a hierarchy with as many levels as you want.
A System namespace in the FCL acts as the root
namespace for all the fundamental and base classes
defined inside the FCL. One of the fundamental classes
defined in the System namespace is Object class
(uniquely identified as System.Object). This class acts
as the ultimate base class for all other types in the .NET
Framework.
The System.Windows.Forms namespace
organizes classes for working with Windows forms.
The System.Drawing namespace organizes classes for
creating graphical elements.