CreateInstance(ref strArray);public string[] CreateInstance(ref string[] aa)
{
aa[1] = "haha";
return aa;
}
+ref应该就能完成你想要的情况. -_______________-b
{
aa[1] = "haha";
return aa;
}
+ref应该就能完成你想要的情况. -_______________-b
解决方案 »
- 请教怎么将某一个子窗体置底(不要挡住了其它的子窗体)
- 利用c#做图片合成 哪里有高手 帮帮我
- 想把在GridView编辑的多列数据作为新数据整体重新插入数据库表中.请进!
- 如何用程序实现 - 将网页上的PDF文件下载到本地? 高手进
- 求教 :字符串写法
- 如何获取当前系统时间
- 如何判断一个表中是否存在某条记录。如果没有就插入,有的话就更新。
- WPF,请看下Canvas的布局
- fileSystemWatcher怎么监控网络路径
- c#和ASP.NET的区别是什么,小弟刚学C#,哪一个好一点
- 如何在网页中嵌入.net控件
- .net类库里有没有方法让我知道dataset或者datatable占用了多少内存?
public class Test1
{
public int i = 0;
public Test1()
{
}
}
public class ZZConsole
{
[STAThread]
static void Main(string[] args)
{
Hashtable t = new Hashtable();
t.Add("a",new Test1());
Test1 data = (Test1)t["a"];
Console.WriteLine(data.i);//等于0;
data.i = 1;
int m = ((Test1)t["a"]).i;
Console.WriteLine(m);//等于1;
((Test1)t["a"]).i = 3422;
Console.WriteLine(((Test1)t["a"]).i);//等于3422;
Console.ReadLine();
}