C# Language Specification



Download 0,75 Mb.
bet108/524
Sana06.01.2022
Hajmi0,75 Mb.
#324842
1   ...   104   105   106   107   108   109   110   111   ...   524
Bog'liq
CSharp Language Specification

The dynamic type


The type dynamic has special meaning in C#. Its purpose is to allow dynamic binding, which is described in detail in §7.2.2.

dynamic is considered identical to object except in the following respects:



  • Operations on expressions of type dynamic can be dynamically bound (§7.2.2).

  • Type inference (§7.5.2) will prefer dynamic over object if both are candidates.

Because of this equivalence, the following holds:

  • There is an implicit identity conversion between object and dynamic, and between constructed types that are the same when replacing dynamic with object

  • Implicit and explicit conversions to and from object also apply to and from dynamic.

  • Method signatures that are the same when replacing dynamic with object are considered the same signature

The type dynamic is indistinguishable from object at run-time.

An expression of the type dynamic is referred to as a dynamic expression.



  1. Download 0,75 Mb.

    Do'stlaringiz bilan baham:
1   ...   104   105   106   107   108   109   110   111   ...   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