这是什么个意思?没搞明白。
问题1有如下代码:
Try
strFileContent = My.Computer.FileSystem.ReadAllText(fileName)
Catch IOExceptionErr As IOException
Throw New Exception(IOExceptionErr.Message)
End Try
代码中的Throw New Exception(IOExceptionErr.Message)起个什么作用,运行程序还是出错被中断,改成MessageBox.Show(IOExceptionErr.Message)不好吗?
问题2有如下代码:
strFileRowData = strFileContent.Split(New String() {ControlChars.CrLf}, StringSplitOptions.RemoveEmptyEntries)
这句中的New String() {ControlChars.CrLf}怎么理解?这算是VB.net的什么语法啊?