VB 函数可选参数
Private Function JiSuan(a As Integer, Optional b, Optional c) As Integer '可选参数不要有类型!
类默认属性、方法
public class a{ private string[] arr = new string[11]; public string this[int i]{ get{return arr[i];} } public bool this[int i, string b]{ get{return arr[i] == b;} } }
调用:a m = new a();
Response.Write(a[1]);if(a[1,"aa"])
VB
Public Default Property Get RS(key)
if isnumeric(key) then
RS=js(key,Curr_Row)
else
dim index_
index_=Hax(Lcase(key))
RS=js(index_,Curr_Row)
end if
end Property
VS2010安装失败 VC 9.0 Runtime (x86) -->安装文件所在目录没有权限