using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Bowin.Common.Utility { public class WeekHelper { private static Dictionary _weekDictionary; public static Dictionary WeekDictionary { get { if (_weekDictionary == null) { _weekDictionary = new Dictionary(); _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; } } } }