/// <summary>
/// ascii 轉成 Char
/// </summary>
/// <param name="Num">AscII CODE數值</param>
/// <returns>字元</returns>
public static char Chr(int Num)
{
char C = Convert.ToChar(Num);
return C;
}
Char 轉ascii
/// <summary>
/// 轉成ASCii
/// </summary>
/// <param name="C">要轉的字元</param>
/// <returns>ASCII Code數值</returns>
public static int ASC(char C)
{
int N = Convert.ToInt32(C);
return N;
}
沒有留言:
張貼留言