SORU
15 Temmuz 2009, ÇARŞAMBA


Nasıl number (int C dönüştürebilirim#?

Nasıl number (int C dönüştürebilirim#?

CEVAP
15 Temmuz 2009, ÇARŞAMBA


Verilen:

 uint n = 3;

int i = checked((int)n); //throws OverflowException if n > Int32.MaxValue
int i = unchecked((int)n); //converts the bits only 
                           //i will be negative if n > Int32.MaxValue

int i = (int)n; //same behavior as unchecked

ya

int i = Convert.ToInt32(n); //same behavior as checked

--EDİT

Dahil Kenan E. K. tarafından belirtildiği gibi bilgi

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:
C#

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • ★TheCrono Official Channel★

    ★TheCrono

    3 Mayıs 2014
  • andyabc45

    andyabc45

    1 Mayıs 2011
  • PlugResearch

    PlugResearch

    22 Mart 2006