c#中将整数转化为字符串
Given a hexadecimal string and we have to convert it into an integer number.
给定一个十六进制字符串,我们必须将其转换为整数。
从十六进制字符串转换为整数 (Converting from hexadecimal string to integer)
Let suppose you have a string "3039" which is a hexadecimal value of integer 12345, but this value is in string format, and you want to its integer (number) value.
假设您有一个字符串“ 3039” ,它是一个整数12345的十六进制值,但是该值是字符串格式,并且您想要它的整数(数字)值。
To convert a hexadecimal string to an integer number – we use Convert.ToInt32() method.
要将十六进制字符串转换为整数 –我们使用Convert.ToInt32()方法。
Syntax:
句法: