C# 0 The Complete Reference


PART I C h a p t e r   2



Download 4,07 Mb.
Pdf ko'rish
bet65/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   61   62   63   64   65   66   67   68   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt


PART I

C h a p t e r   2 :  

A n   O v e r v i e w   o f   C #  

21

PART IPART I



This is the second type of comment supported by C#. A single-line comment begins with 

a

//

 and ends at the end of the line. Although styles vary, it is not uncommon for programmers 

to use multiline comments for longer remarks and single-line comments for brief, line-by-

line descriptions. (The third type of comment supported by C# aids in the creation of 

documentation and is described in Appendix A.)

The next line of code is shown here:

static void Main() {

This line begins the 

Main( )

 method. As mentioned earlier, in C#, a subroutine is called a 

method. As the comment preceding it suggests, this is the line at which the program will 

begin executing. All C# applications begin execution by calling 



Main( )

. The complete 

meaning of each part of this line cannot be given now, since it involves a detailed 

understanding of several other C# features. However, since many of the examples in 

this book will use this line of code, we will take a brief look at it here.

The line begins with the keyword 




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   61   62   63   64   65   66   67   68   ...   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