如何自定义的CultureInfo的默认日历?自定义、日历、CultureInfo

2023-09-04 05:58:15 作者:孤傲大全

我要定制日历波斯,但设置的CultureInfo,因为这之后:

I want to customize calendar to persian but after setting CultureInfo as this:

CultureInfo fa = new CultureInfo("fa-IR",true);
Thread.CurrentThread.CurrentCulture = fa;

月份和日子的名称不改变,因此决定来覆盖默认日历。

name of month and days don't changed so decided to override default calendar.

我怎么能这样做?

推荐答案

您可以创建的CultureInfo的子类。它的属性将不会为只读,并可以分配给它。

You can Create a subclass of CultureInfo. The property of it will not be read only and you can assign to it..

 
精彩推荐
图片推荐