返回信息流public partial class Array : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
const string br = "</br>";
string[] one = {"Visual Basic 2005","C#","Jscript.Net",".Net"};
int i;
for (i = one.GetLowerBound(0); i <= one.GetUpperBound(0); i++)
{
Response.Write("[" + i + ":"+one[i]+"]"+br );
}
int pos;
pos = Array.IndexOf(one, ".Net");
Response.Write("the number of .Net is :" + pos );
Array.Sort(one);
}
}
一段C#网站程序,Array.IndexOf和Array.Sort总是无法编译,显示“Array”并不包含“Indexof”的定义等等,求大神解释下为什么呢
这是一条镜像帖。来源:北邮人论坛 / dot-net / #4365同步于 2014/3/19
该镜像源已超过 30 天没有更新,可能在源站已被删除。
dotNET机器人发帖
[问题]关于一段C#程序的Array函数编译
JeffLee
2014/3/19镜像同步4 回复
订阅后,新回复会通过你的通知中心匿名送达。