C# Language Specification



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

Foreach statements


For a foreach statement stmt of the form:

foreach ( type identifier in expr ) embedded-statement


        1. Using statements


For a using statement stmt of the form:

using ( resource-acquisition ) embedded-statement



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

  • The definite assignment state of v on the control flow transfer to embedded-statement is the same as the state of v at the end of resource-acquisition.
        1. Lock statements


For a lock statement stmt of the form:

lock ( expr ) embedded-statement



  • The definite assignment state of v at the beginning of expr is the same as the state of v at the beginning of stmt.

  • The definite assignment state of v on the control flow transfer to embedded-statement is the same as the state of v at the end of expr.
        1. Yield statements


For a yield return statement stmt of the form:

yield return expr ;



  • The definite assignment state of v at the beginning of expr is the same as the state of v at the beginning of stmt.

  • The definite assignment state of v at the end of stmt is the same as the state of v at the end of expr.

A yield break statement has no effect on the definite assignment state.
        1. General rules for simple expressions


The following rule applies to these kinds of expressions: literals (§7.6.1), simple names (§7.6.2), member access expressions (§7.6.4), non-indexed base access expressions (§7.6.8), typeof expressions (§7.6.11), and default value expressions (§7.6.13).

  • The definite assignment state of v at the end of such an expression is the same as the definite assignment state of v at the beginning of the expression.

        1. Download 0,75 Mb.

          Do'stlaringiz bilan baham:
1   ...   125   126   127   128   129   130   131   132   ...   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