c# - Convert hexadecimal string to an integer -
int मान = कन्वर्ट.ToInt32 ('o'); बाइट [] बी = नया बाइट [] {(बाइट) मान}; फ़ाइल। WritAllBytes (Default.ProjectsPath, b); जब मैं फ़ाइल खोलता हूं तो यह o प्रदर्शित करता है, मैं फ़ाइल को बाइट मान लिखना चाहता हूं?
< 0x निकालें और फिर कनवर्ट करें:
int i = Convert.ToInt32 ("0xFE" .Substring (2), 16);
Comments
Post a Comment