用VB.Net读取Resources.resx文件

Imports System.Resources Public Function GetString(ByVal Key As String) As String Const NAME_SPACE As String = "GSDN.Common" Dim resourceMgrIns As ResourceManager Dim value As String resourceMgrIns = New ResourceManager( _ NAME_SPACE & ".Resources", _ GetType(My.Resources.Resources).Assembly) value = resourceMgrIns.GetString(Key) Return value End Function

你可能感兴趣的:(VB.Net)