示例#1
0
 /// <summary>
 /// Initializes the Nested class.
 /// </summary>
 /// <remarks>
 /// Explicit static constructor to tell C# compiler not to mark type as beforefieldinit.
 /// </remarks>
 static Nested()
 {
     Current = new BusinessWeek();
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Monday));
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Tuesday));
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Wednesday));
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Thursday));
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Friday));
 }
 /// <summary>
 /// Initializes the Nested class.
 /// </summary>
 /// <remarks>
 /// Explicit static constructor to tell C# compiler not to mark type as beforefieldinit.
 /// </remarks>
 static Nested()
 {
     Current = new BusinessWeek();
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Monday));
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Tuesday));
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Wednesday));
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Thursday));
     Current.BusinessDays.Add(new BusinessDay(DayOfWeek.Friday));
 }