12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Bowin.Common.Utility
- {
- public class WeekHelper
- {
- private static Dictionary<int, string> _weekDictionary;
- public static Dictionary<int, string> WeekDictionary
- {
- get
- {
- if (_weekDictionary == null)
- {
- _weekDictionary = new Dictionary<int, string>();
- _weekDictionary.Add((int)DayOfWeek.Monday, "星期一");
- _weekDictionary.Add((int)DayOfWeek.Tuesday, "星期二");
- _weekDictionary.Add((int)DayOfWeek.Wednesday, "星期三");
- _weekDictionary.Add((int)DayOfWeek.Thursday, "星期四");
- _weekDictionary.Add((int)DayOfWeek.Friday, "星期五");
- _weekDictionary.Add((int)DayOfWeek.Saturday, "星期六");
- _weekDictionary.Add((int)DayOfWeek.Sunday, "星期日");
- }
- return _weekDictionary;
- }
- }
- }
- }
|