我写了一个函数,返回值是一个数组,请问怎么写? public static byte[] aa(){//dddd} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public static int[] Fun(){int[] A=new int[3]; return A;} public static string shangchuan(System.Web.UI.HtmlControls.HtmlInputFile file1,string path,bool openPic){ string[] array=new string[5]; HttpPostedFile postedfile=file1.PostedFile; //得到客户端的路径 string filePath=postedfile.FileName; //真实的文件名 string fileName=System.IO.Path.GetFileName(filePath); //获得扩展名 string extName=System.IO.Path.GetExtension(filePath); //根据当前服务器的系统时间来命名 string name=DateTime.Now.ToString("yyyymmddhhmmss")+extName; //保存到服务器端 if(openPic==false) { postedfile.SaveAs(HttpContext.Current.Server.MapPath(".")+path+name); return array.SetValue(name,0); }}抱错啊 用 ArrayList呢返回 ArrayList 不就行了吗 如何把数据库中的表格导入到treeview Exchange2007自带的WebService问题 高分求解 .net中怎么去取xml文件中的节点及属性 C#关于随机数抽取问题 如何得到本年,或者本季度的起始日期 读写顺序文件的简单问题:) webform中datagrid动态添加多个模板列和checkbox列的问题! DataAdapter.SelectCommand 属性需要初始化。 关于名字空间namespace.散分了!! 问一个关于C#运行环境的问题。 C#中怎样添加dll (100分)高手请进,谁对serial类用的比较熟悉?
{
int[] A=new int[3];
return A;
}
string[] array=new string[5];
HttpPostedFile postedfile=file1.PostedFile;
//得到客户端的路径
string filePath=postedfile.FileName;
//真实的文件名
string fileName=System.IO.Path.GetFileName(filePath);
//获得扩展名
string extName=System.IO.Path.GetExtension(filePath);
//根据当前服务器的系统时间来命名
string name=DateTime.Now.ToString("yyyymmddhhmmss")+extName;
//保存到服务器端
if(openPic==false)
{
postedfile.SaveAs(HttpContext.Current.Server.MapPath(".")+path+name);
return array.SetValue(name,0);
}
}抱错啊
返回 ArrayList 不就行了吗