C# Language Specification



Download 0,75 Mb.
bet135/524
Sana06.01.2022
Hajmi0,75 Mb.
#324842
1   ...   131   132   133   134   135   136   137   138   ...   524
Bog'liq
CSharp Language Specification

?: expressions


For an expression expr of the form expr-cond ? expr-true : expr-false:

  • The definite assignment state of v before expr-cond is the same as the state of v before expr.

  • The definite assignment state of v before expr-true is definitely assigned if and only if one of the following holds:

  • expr-cond is a constant expression with the value false

  • the state of v after expr-cond is definitely assigned or “definitely assigned after true expression”.

  • The definite assignment state of v before expr-false is definitely assigned if and only if one of the following holds:

  • expr-cond is a constant expression with the value true

  • the state of v after expr-cond is definitely assigned or “definitely assigned after false expression”.

  • The definite assignment state of v after expr is determined by:

  • If expr-cond is a constant expression (§7.19) with value true then the state of v after expr is the same as the state of v after expr-true.

  • Otherwise, if expr-cond is a constant expression (§7.19) with value false then the state of v after expr is the same as the state of v after expr-false.

  • Otherwise, if the state of v after expr-true is definitely assigned and the state of v after expr-false is definitely assigned, then the state of v after expr is definitely assigned.

  • Otherwise, the state of v after expr is not definitely assigned.

        1. Download 0,75 Mb.

          Do'stlaringiz bilan baham:
1   ...   131   132   133   134   135   136   137   138   ...   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