VB.net to c#遇到问题
private Function GetTextProperty(byval controlname as string) as Object
dim objControl as object=me.Controls(controlname)
if objControl isnot nothing then
return objControl.name
endif
end function
本人对C#语法不是很熟悉,将此段翻译成C# 谢谢,
好像C#中对object类型不支持上面写法.