我得到的是这样的东西,我要怎么转换
解决方案 »
- jquery.easyui 实现 P标签中A 悬浮 更改背景 菜鸟一枚 求 高手哦!
- 一道面试题,TCP/IP到底是如何通信?
- 按日期生成流水号00001
- C#可以动态创建二维数组吗,在线等 急
- 一般在写程序时,想看看某个变量的值,或者检查一下输出的结果等是否符合要求,是不是用Console.WriteLine
- 第一次发贴,刚做了个分页的控件
- 如何知道winform的datagrid中哪一个列头被点击了
- WinForm窗体传值问题<类似QQ修改头像的功能>
- 怎样在DataGridView中显示数据库数据啊?
- 使用HttpWebRequest,我如何将一个模拟html的串(含表单)提交到一个asp页?
- 初学者问题: DataView 的 RowFilter 的性能问题 求解答谢谢
- 咨询使用winfrom调用Web登入后的接口事宜
object[] arr = new object[3];
arr[0] = 1;
arr[1] = "test";
Button testButton = new Button();
testButton.ID = "testButton";
arr[2] = testButton; string stringResult = string.Empty;
int intResult = 0;
Button btnResult = null; foreach (object item in arr)
{
if (item is string)
{
stringResult = (string)item;
}
else if (item is int)
{
intResult = (int)item;
}
else if (item is Button)
{
btnResult = (Button)item;
} }
强制转换一下就是了,你想知道什么