SORU
19 EYLÜL 2008, Cuma


Nasıl bir birim içine hex değerleri ayrıştırmak için?

uint color; 
bool parsedhex = uint.TryParse(TextBox1.Text, out color); 
//where Text is of the form 0xFF0000
if(parsedhex)
   //...

işe yaramıyor. Neyi yanlış yapıyorum?

CEVAP
19 EYLÜL 2008, Cuma


Deneyin

Convert.ToUInt32(hex, 16)  //Using ToUInt32 not ToUInt64, as per OP comment

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • booba1234

    booba1234

    22 Temmuz 2006
  • LardTardProductions's channel

    LardTardProd

    10 NİSAN 2009
  • whiteboy7thst

    whiteboy7ths

    1 Temmuz 2009