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

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -