我需要做这样的事情:
Private Sub SearchInResources(ByVal PatternSTR As String)
For Each ResourceFile In My.Resources ' Obviously this don't works
If ResourceFile.EndsWith(".txt") Then
Dim fileContent As String = ResourceFile
Dim stringStream As New System.IO.StringReader(fileContent)
If stringStream.contains(PatternSTR) Then
' Things...
End If
End If
Next
End Sub
我已经尝试过这种方法,但对我不起作用!:如何获取资源文件中所有资源的名称