C# Language Specification


Invocation expressions and object creation expressions



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

Invocation expressions and object creation expressions


For an invocation expression expr of the form:

primary-expression ( arg1 , arg2 , … , argn )

or an object creation expression of the form:



new type ( arg1 , arg2 , … , argn )

  • For an invocation expression, the definite assignment state of v before primary-expression is the same as the state of v before expr.

  • For an invocation expression, the definite assignment state of v before arg1 is the same as the state of v after primary-expression.

  • For an object creation expression, the definite assignment state of v before arg1 is the same as the state of v before expr.

  • For each argument argi, the definite assignment state of v after argi is determined by the normal expression rules, ignoring any ref or out modifiers.

  • For each argument argi for any i greater than one, the definite assignment state of v before argi is the same as the state of v after argi-1.

  • If the variable v is passed as an out argument (i.e., an argument of the form “out v”) in any of the arguments, then the state of v after expr is definitely assigned. Otherwise; the state of v after expr is the same as the state of v after argn.

  • For array initializers (§7.6.10.4), object initializers (§7.6.10.2), collection initializers (§7.6.10.3) and anonymous object initializers (§7.6.10.6), the definite assignment state is determined by the expansion that these constructs are defined in terms of.

        1. Download 0,75 Mb.

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