转换Excel数字列号为字母列号

例如:

0 -> A

26 -> AA

private static string GetColumnChar(int col)
{
var a = col / ;
var b = col % ; if (a > ) return GetColumnChar(a - ) + (char)(b + ); return ((char)(b + )).ToString();
}
05-11 13:47