C# 0 The Complete Reference


Asm1  is linked with  test1.dll



Download 4,07 Mb.
Pdf ko'rish
bet778/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   774   775   776   777   778   779   780   781   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

Asm1

 is linked with 



test1.dll

 and the alias 



Asm2

 is 


linked with 

test2.dll

.

Within the program, the aliases are specified by these two 



extern

 statements at the top 

of the file:

extern alias Asm1;

extern alias Asm2;

Within 


Main( )

, the aliases are used to disambiguate the references to 



MyClass

. Notice how 

the alias is used to refer to 

MyClass

:

Asm1::MyNS.MyClass



The alias is specified first, followed by the namespace resolution operator, followed by the 

name of the namespace that contains the ambiguous class, followed by the dot operator and 

the class name. This same general form works with other 

extern

 aliases.

The output from the program is shown here:

Constructing from MyClass1.dll.

Constructing from MyClass2.dll.

www.freepdf-books.com




This page intentionally left blank 

www.freepdf-books.com




C

HAPTER 21

Exploring the System 

Namespace

C

HAPTER 22



Strings and Formatting

C

HAPTER 23



Multithreaded Programming

C

HAPTER 24



Collections, Enumerators, 

and Iterators

C

HAPTER 25



Networking Through the 

Internet Using System.Net

C

HAPTER 26



Use System.Windows.Forms 

to Create Form-Based 

Windows Applications

II

Exploring the C# Library



P

art II explores the C# library. As explained in Part I, the class 

library used by C# is the .NET Framework class library. As a 

result, the material in this section applies not only to C#, but to 

the .NET Framework as a whole.

The .NET Framework class library is organized into namespaces. 

To use a portion of the library, you will normally import its namespace 

by including a 



using

 directive. Of course, you can also fully qualify 

the name of the item with its namespace name, but most often, it is 

simply easier to import the entire namespace.

The .NET library is very large, and it is beyond the scope of this 

book to examine each part of it. (A complete description would easily 

fill a very large book!) Instead, Part II examines the core elements of the 

library, many of which are contained in the 



System

 namespace. Also 

discussed are the collection classes, multithreading, and networking.


Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   774   775   776   777   778   779   780   781   ...   1096




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish