.NET: Are there any differences between InvariantCulture and en-US?

后端 未结 6 1139
感情败类
感情败类 2020-11-30 06:04

Given the following two cultures:

CultureInfo c1 = InvariantCulture;
CultureInfo c2 = new CultureInfo(\"en-US\");

and i were to examine eve

6条回答
  •  Happy的楠姐
    2020-11-30 06:32

    Yes.

    For example: InvariantCulture uses the international symbol for currency: "¤" versus the dollar sign: "$" when formatting currency.

    For the most part, however, they're very similar.

    Edit: List of differences between en-US and Invariant:

                              en-US                        Invariant
    =====================     ==================           ==================
    Number                    123456.78                    +123456.78
    Currency Symbol           $                            ¤
    Currency                  $123456.78                   ¤123456.78
    Short Date                1/11/2012                    01/11/2012
    Time                      10:36:52 PM                  22:36:52
    Metric                    No                           Yes
    Long Date                 Wednesday, January 11, 2012  Wednesday, 11 January, 2012
    Year Month                January, 2012                2012 January
    

提交回复
热议问题