本文整理匯總了C#中System.Globalization.CultureInfo.NeutralName方法的典型用法代碼示例。如果您正苦於以下問題:C# CultureInfo.NeutralName方法的具體用法?C# CultureInfo.NeutralName怎麽用?C# CultureInfo.NeutralName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Globalization.CultureInfo
的用法示例。
在下文中一共展示了CultureInfo.NeutralName方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Exists
public bool Exists(string alpha2_Code, CultureInfo language)
{
using (_db)
{
_db.Open();
bool model = _db.CurrentExists("Translations", alpha2_Code, language.NeutralName());
return model;
}
}
示例2: Get
public Translation Get(string alpha2_Code, CultureInfo language)
{
using (_db)
{
_db.Open();
Translation model = _db.Translation(alpha2_Code, language.NeutralName());
return model;
}
}
示例3: AreTranslated
public bool AreTranslated(CultureInfo language)
{
using (_db)
{
_db.Open();
bool model = _db.CurrentExist(language.NeutralName());
return model;
}
}
示例4: FindAll
public IEnumerable<Country> FindAll(CultureInfo language)
{
using (_db)
{
_db.Open();
IEnumerable<Country> model = _db.AllCountries(language.NeutralName());
return model;
}
}
示例5: findCurrent
private IEnumerable<Country> findCurrent(CultureInfo language)
{
using (_db)
{
_db.Open();
IEnumerable<Country> model = _db.CurrentCountries(language.NeutralName());
return model;
}
}
示例6: Get
public Country Get(string alpha2_Code, CultureInfo language)
{
using (_db)
{
_db.Open();
Country model = _db.Country(alpha2_Code, language.NeutralName());
return model;
}
}
示例7: CacheHash
public CacheHash(CultureInfo ci)
{
_value = "Countries." + ci.NeutralName();
}