• 大小: 0.10M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: LCID  区域  

资源简介

C#和Window区域和语言设置

创建自定义区域性

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace CultureAndRegionInfoTest
{
    class Program
    {
        static void Main(string[] args)
        {
            //https://msdn.microsoft.com/zh-cn/library/system.globalization.cultureandregioninfobuilder
            //https://msdn.microsoft.com/library/ms172469%28v=vs.100%29.aspx



            CultureAndRegionInfoBuilder cib = null;
            try 
            {
        // Create a CultureAndRegionInfoBuilder object named “x-en-US-sample“.
            Console.WriteLine(“Create and explore the CultureAndRegionInfoBuilder...\n“);
            cib = new CultureAndRegionInfoBuilder(
                                 “x-en-US-sample“ CultureAndReg

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-11-12 21:18  CultureAndRegionInfoTest\
     文件       88510  2015-11-12 21:09  CultureAndRegionInfoTest\CultureAndRegionInfoBuilder 类.html
     目录           0  2015-11-12 20:34  CultureAndRegionInfoTest\CultureAndRegionInfoTest\
     文件         914  2015-11-12 20:34  CultureAndRegionInfoTest\CultureAndRegionInfoTest.sln
     文件       18432  2015-11-12 21:18  CultureAndRegionInfoTest\CultureAndRegionInfoTest.suo
     文件       54161  2015-11-12 21:18  CultureAndRegionInfoTest\CultureAndRegionInfoTest.zip
     目录           0  2015-11-12 20:34  CultureAndRegionInfoTest\CultureAndRegionInfoTest\bin\
     目录           0  2015-11-12 20:43  CultureAndRegionInfoTest\CultureAndRegionInfoTest\bin\Debug\
     文件        8192  2015-11-12 21:15  CultureAndRegionInfoTest\CultureAndRegionInfoTest\bin\Debug\CultureAndRegionInfoTest.exe
     文件       13824  2015-11-12 21:15  CultureAndRegionInfoTest\CultureAndRegionInfoTest\bin\Debug\CultureAndRegionInfoTest.pdb
     文件       11600  2015-11-12 21:16  CultureAndRegionInfoTest\CultureAndRegionInfoTest\bin\Debug\CultureAndRegionInfoTest.vshost.exe
     文件         490  2010-03-17 22:39  CultureAndRegionInfoTest\CultureAndRegionInfoTest\bin\Debug\CultureAndRegionInfoTest.vshost.exe.manifest
     文件        2507  2015-11-12 20:43  CultureAndRegionInfoTest\CultureAndRegionInfoTest\CultureAndRegionInfoTest.csproj
     目录           0  2015-11-12 20:34  CultureAndRegionInfoTest\CultureAndRegionInfoTest\obj\
     目录           0  2015-11-12 20:34  CultureAndRegionInfoTest\CultureAndRegionInfoTest\obj\x86\
     目录           0  2015-11-12 21:15  CultureAndRegionInfoTest\CultureAndRegionInfoTest\obj\x86\Debug\
     文件         760  2015-11-12 21:16  CultureAndRegionInfoTest\CultureAndRegionInfoTest\obj\x86\Debug\CultureAndRegionInfoTest.csproj.FileListAbsolute.txt
     文件        7769  2015-11-12 21:15  CultureAndRegionInfoTest\CultureAndRegionInfoTest\obj\x86\Debug\CultureAndRegionInfoTest.csprojResolveAssemblyReference.cache
     文件        8192  2015-11-12 21:15  CultureAndRegionInfoTest\CultureAndRegionInfoTest\obj\x86\Debug\CultureAndRegionInfoTest.exe
     文件       13824  2015-11-12 21:15  CultureAndRegionInfoTest\CultureAndRegionInfoTest\obj\x86\Debug\CultureAndRegionInfoTest.pdb
     文件        6102  2015-11-12 21:15  CultureAndRegionInfoTest\CultureAndRegionInfoTest\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2015-11-12 20:34  CultureAndRegionInfoTest\CultureAndRegionInfoTest\obj\x86\Debug\TempPE\
     文件        4365  2015-11-12 21:17  CultureAndRegionInfoTest\CultureAndRegionInfoTest\Program.cs
     目录           0  2015-11-12 20:34  CultureAndRegionInfoTest\CultureAndRegionInfoTest\Properties\
     文件        1460  2015-11-12 20:34  CultureAndRegionInfoTest\CultureAndRegionInfoTest\Properties\AssemblyInfo.cs
     文件       15948  2015-11-12 21:16  CultureAndRegionInfoTest\x-en-US-sample.xml
     文件       34121  2015-11-12 21:10  CultureAndRegionInfoTest\创建自定义区域性.html

评论

共有 条评论