[求助]C#和VB??
呜呜……,在书上看到一例子,是用VB写的,没学过BV,谁能帮我把他翻译成C#(要不C或C++也行),小女子这厢给您鞠躬了。 Public Function GetMessages() As String() //public String GetMessage()
//{
Dim MessageArray(20) As String //String[] MessageArray=new string[20];
Dim I As Interger //int i;
Application.Lock() // Application.Lock() {
For I=0 To MessageArray.Length -1 //for(i=0;i<MessageArray.Length-1;i++)
MessageArray(I) =Application("Message"& I)// 这句不懂,Application是属性,怎以成了方法???
Next //}
Application.UnLock() //Application.UnLock()
GetMessage=MessageArray //这句也不懂了,数组如何赋值给函数啊?
End Function //}