//36进制转10进制
public static int int36Convert10(string str)
{
int d = 0;
int b;
char[] ch = str.ToCharArray();
int j = 0;
for (int i = ch.Length – 1; i >= 0; i–)
{
char c = ch[i];
b = 1;
for (int t = 0; t < j; t++)
b= b * 36;
j++;
int cc;
if (c >= \’0\’ && c <= \’9\’)
cc = Convert.ToInt32(c) – 48;
else
cc = Convert.ToInt32(c) – 65 + 10;
d += cc * b;
}
return d;
}
爱站程序员基地
![(原创)[C#] 一步一步自定义拖拽(Drag&Drop)时的鼠标效果:(一)基本原理及基本实现-爱站程序员基地](https://aiznh.com/wp-content/uploads/2022/07/20220721231016-62d9dcd85c40b-220x150.gif)

