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


// Don't forget to import the CarLibrary namespace!



Download 21,46 Mb.
Pdf ko'rish
bet961/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   957   958   959   960   961   962   963   964   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

// Don't forget to import the CarLibrary namespace!

using CarLibrary;

namespace CSharpCarClient

{

public class Program



{

static void Main(string[] args)

{

Console.WriteLine("***** C# CarLibrary Client App *****");



// Make a sports car.

SportsCar viper = new SportsCar("Viper", 240, 40);

viper.TurboBoost();

// Make a minivan.

MiniVan mv = new MiniVan();

mv.TurboBoost();

Console.ReadLine();

}

}

}



This code looks just like the code of the other applications developed thus far in the text. The

only point of interest is that the C# client application is now making use of types defined within a

separate custom assembly. Go ahead and run your program. As you would expect, the execution of

this program results in the display of various message boxes.

It is also important to point out that Visual Studio 2008 has also placed a copy of CarLibrary.

dll into the \bin\Debug folder of the CSharpCarClient project folder. This can be verified by click-

ing the Show All Files button of the Solution Explorer (see Figure 15-10).

Figure 15-10.

Visual Studio 2008 copies private assemblies to the client’s directory.

C H A P T E R   1 5  



I N T R O D U C I N G   . N E T  A S S E M B L I E S



493

8849CH15.qxd  10/22/07  1:46 PM  Page 493




As explained later in this chapter, CarLibrary.dll has been deployed as a “private” assembly.

Therefore the CLR loads the local copy of the .NET binary on behalf of the current client

(CSharpCarClient.exe).


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   957   958   959   960   961   962   963   964   ...   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