中性语言设置的用途是什么? [英] What is the Neutral Language setting used for?
问题描述
您可以找到以下设置:
WinForms应用程序属性->应用程序->汇编信息->中性语言
WinForms Application Properties->Application->Assembly Information->Neutral Language
推荐答案
我认为它设置了 NeutralResourcesLanguageAttribute 。从文档中:
I believe it sets the NeutralResourcesLanguageAttribute for the assembly. From the docs:
NeutralResourcesLanguageAttribute
通知ResourceManager
语言,用于为程序集编写中立的
文化资源,
,并且还可以通知
<$ c $程序集的c> ResourceManager 使用
(主程序集或
卫星程序集)通过资源
后备过程检索
个中立资源。当以与
中立资源语言相同的语言查找
资源时,
ResourceManager
自动使用位于在主要的
程序集中,而不是使用当前
用户界面区域性搜索当前
线程的
卫星程序集。这样可以提高您为
加载的第一个资源查找
的性能,并可以减少工作集。
The
NeutralResourcesLanguageAttribute
informs theResourceManager
of the language used to write the neutral culture's resources for an assembly, and can also inform theResourceManager
of the assembly to use (either the main assembly or a satellite assembly) to retrieve neutral resources using the resource fallback process. When looking up resources in the same culture as the neutral resources language, theResourceManager
automatically uses the resources located in the main assembly, instead of searching for a satellite assembly with the current user interface culture for the current thread. This will improve lookup performance for the first resource you load, and can reduce your working set.
有帮助吗?您可能还需要查看金·汉密尔顿(Kim Hamilton)关于该主题的博客文章。
Does that help? You might also want to look at Kim Hamilton's blog post on the topic.
这篇关于中性语言设置的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!