c# - Convert hexadecimal string to an integer -


  int मान = कन्वर्ट.ToInt32 ('o'); बाइट [] बी = नया बाइट [] {(बाइट) मान}; फ़ाइल। WritAllBytes (Default.ProjectsPath, b);  

जब मैं फ़ाइल खोलता हूं तो यह o प्रदर्शित करता है, मैं फ़ाइल को बाइट मान लिखना चाहता हूं?

< "post-text" itemprop = "text">

0x निकालें और फिर कनवर्ट करें:

  int i = Convert.ToInt32 ("0xFE" .Substring (2), 16);  

Comments

Popular posts from this blog

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

ios - Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc? -