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

  • Caroline Martin

    Caroline Mar

    19 EYLÜL 2008
  • DancingIsAPassion

    DancingIsAPa

    29 AĞUSTOS 2009
  • jeffisthecoolguy

    jeffisthecoo

    17 HAZİRAN 2013