C# Language Specification



Download 0,75 Mb.
bet127/524
Sana06.01.2022
Hajmi0,75 Mb.
#324842
1   ...   123   124   125   126   127   128   129   130   ...   524
Bog'liq
CSharp Language Specification

Try-catch statements


For a statement stmt of the form:

try try-block


catch(...) catch-block-1
...
catch(...) catch-block-n

  • The definite assignment state of v at the beginning of try-block is the same as the definite assignment state of v at the beginning of stmt.

  • The definite assignment state of v at the beginning of catch-block-i (for any i) is the same as the definite assignment state of v at the beginning of stmt.

  • The definite assignment state of v at the end-point of stmt is definitely assigned if (and only if) v is definitely assigned at the end-point of try-block and every catch-block-i (for every i from 1 to n).
        1. Try-finally statements


For a try statement stmt of the form:

try try-block finally finally-block



  • The definite assignment state of v at the beginning of try-block is the same as the definite assignment state of v at the beginning of stmt.

  • The definite assignment state of v at the beginning of finally-block is the same as the definite assignment state of v at the beginning of stmt.

  • The definite assignment state of v at the end-point of stmt is definitely assigned if (and only if) at least one of the following is true:

  • v is definitely assigned at the end-point of try-block

  • v is definitely assigned at the end-point of finally-block

If a control flow transfer (for example, a goto statement) is made that begins within try-block, and ends outside of try-block, then v is also considered definitely assigned on that control flow transfer if v is definitely assigned at the end-point of finally-block. (This is not an only if—if v is definitely assigned for another reason on this control flow transfer, then it is still considered definitely assigned.)

        1. Download 0,75 Mb.

          Do'stlaringiz bilan baham:
1   ...   123   124   125   126   127   128   129   130   ...   524




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