int a = 10; if (a is int) { MessageBox.Show("int"); } else { MessageBox.Show("not int"); }
is
对象.GetType();