C# Language Specification


Better conversion from type



Download 0,75 Mb.
bet199/524
Sana06.01.2022
Hajmi0,75 Mb.
#324842
1   ...   195   196   197   198   199   200   201   202   ...   524
Bog'liq
CSharp Language Specification

Better conversion from type


Given a conversion C1 that converts from a type S to a type T1, and a conversion C2 that converts from a type S to a type T2, C1 is a better conversion than C2 if at least one of the following holds:

  • An identity conversion exists from S to T1 but not from S to T2

  • T1 is a better conversion target than T2 (§7.5.3.5)
        1. Better conversion target


Given two different types T1 and T2, T1 is a better conversion target than T2 if at least one of the following holds:

  • An implicit conversion from T1 to T2 exists, and no implicit conversion from T2 to T1 exists

  • T1 is a signed integral type and T2 is an unsigned integral type. Specifically:

  • T1 is sbyte and T2 is byte, ushort, uint, or ulong

  • T1 is short and T2 is ushort, uint, or ulong

  • T1 is int and T2 is uint, or ulong

  • T1 is long and T2 is ulong

        1. Download 0,75 Mb.

          Do'stlaringiz bilan baham:
1   ...   195   196   197   198   199   200   201   202   ...   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