C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet565/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   561   562   563   564   565   566   567   568   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

The Preprocessor

C# defines several 



preprocessor directives,

 which affect the way that your program’s source 

file is interpreted by the compiler. These directives affect the text of the source file in which 

they occur, prior to the translation of the program into object code. The term 



preprocessor 

directive

 comes from the fact that these instructions were traditionally handled by a separate 

compilation phase called the 

preprocessor.

 Today’s modern compiler technology no longer 

requires a separate preprocessing stage to handle the directives, but the name has stuck.

C# defines the following preprocessor directives:

#define

#elif


#else

#endif


#endregion

#error


#if

#line


#pragma

#region


#undef

#warning


www.freepdf-books.com


452

 

P a r t   I :  



T h e   C #   L a n g u a g e

All preprocessor directives begin with a 



#

 sign. In addition, each preprocessor directive 

must be on its own line.

Given C#’s modern, object-oriented architecture, there is not as much need for the 

preprocessor directives as there is in older languages. Nevertheless, they can be of value 

from time to time, especially for conditional compilation. Each directive is examined in turn.




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   561   562   563   564   565   566   567   568   ...   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