This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy


// Explicitly list the namespaces used by this file



Download 21,46 Mb.
Pdf ko'rish
bet110/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   106   107   108   109   110   111   112   113   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

// Explicitly list the namespaces used by this file.

using System;

using System.Drawing;

class Program

{

public void DisplayLogo()



{

// Create a 20 * 20 pixel bitmap.

Bitmap companyLogo = new Bitmap(20, 20);

...

}

}



Because your code file is referencing System.Drawing, the compiler is able to resolve the Bitmap

class as a member of this namespace. If you did not specify the System.Drawing namespace, you

would be issued a compiler error. However, you are free to declare variables using a 

fully qualified

name as well:

// Not listing System.Drawing namespace!

using System;

class Program

{

public void DisplayLogo()



{

// Using fully qualified name.

System.Drawing.Bitmap companyLogo =

new System.Drawing.Bitmap(20, 20);

...


}

}

While defining a type using the fully qualified name provides greater readability, I think you’d



agree that the C# using keyword reduces keystrokes. In this text, I will avoid the use of fully qualified

names (unless there is a definite ambiguity to be resolved) and opt for the simplified approach of

the C# using keyword.

C H A P T E R   1  




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   106   107   108   109   110   111   112   113   ...   1830




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