Is there a better (shorter) method to retrieve the NeutralResourcesLanguageAttribute of an assembly than using reflection as implemented below?
Public Function GetNeutralResourcesLanguage() As String
Dim assembly = System.Reflection.Assembly.GetExecutingAssembly
Dim attributes = assembly.GetCustomAttributes(GetType(System.Resources.NeutralResourcesLanguageAttribute), False)
If attributes.Length <> 1 Then
Return "en-US"
End If
Dim attribute = CType(attributes(0), System.Resources.NeutralResourcesLanguageAttribute)
Return attribute.CultureName
End Function