显示转换中的注意事项

来源:互联网 发布:文本推荐算法 编辑:程序博客网 时间:2024/06/04 19:05

private void button1_Click(object sender, EventArgs e)

{

    Byte b = 100;

    b += 100;  //或者写成 b = (Byte)(b + 100), 但不能写成 b = b + 100;

    MessageBox.Show(""+b);//显示200

}