Professional IronPython


Creating the Simple C# Extension



Download 20,35 Mb.
Pdf ko'rish
bet345/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   341   342   343   344   345   346   347   348   ...   453
Creating the Simple C# Extension
 

 
329


Protected Internal
members become public.


Private
members remain private and don’t appear at all to IronPython.


Internal
members become private and don’t appear at all to IronPython.
CREATINg THE SImPLE C# ExTENSIoN
The example in the following sections provides a simple set of calculations. Think of it as the 
basic four-function calculator with a bit extra added. The example doesn’t do anything fancy, but 
it does demonstrate techniques you need to build any C# extension for IronPython. The rest of 
the examples in this chapter build on this example, so you should at least scan the techniques pre-
sented in the sections that follow.
Creating the Project
A C# extension project in Visual Studio is nothing more than the typical class library. The following 
steps help you create the project for this example. You can use the same steps when working with 
the other examples — all you need to do is change the project name.
1.
Choose File
➤➤➪➤➤
New
➤➤➪➤➤
Project. You see the New Project dialog box shown in Figure 16-1.
fIgURE 16-1: 
Create a new project to hold your C# extension.
548592c16.indd 329
2/24/10 12:49:21 PM
www.finebook.ir


330

CHAPTER 16
ExtEnding ironPython Using C#
2.
Choose the Visual C# folder in the Installed Templates list.
3.
Select .NET Framework 3.5 or an earlier version of the .NET Framework. Don’t select 
the .NET Framework 4.0 entry. The list of templates changes when you change the .NET 
Framework version.
4.
Select the Class Library template.

Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   341   342   343   344   345   346   347   348   ...   453




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