Esempio n. 1
0
 /// <summary>
 /// Convert an enum of type JobScheduleDay to a string.
 /// </summary>
 /// <param name='value'>
 /// The value to convert to a string.
 /// </param>
 /// <returns>
 /// The enum value as a string.
 /// </returns>
 internal static string JobScheduleDayToString(JobScheduleDay value)
 {
     if (value == JobScheduleDay.Monday)
     {
         return("monday");
     }
     if (value == JobScheduleDay.Tuesday)
     {
         return("tuesday");
     }
     if (value == JobScheduleDay.Wednesday)
     {
         return("wednesday");
     }
     if (value == JobScheduleDay.Thursday)
     {
         return("thursday");
     }
     if (value == JobScheduleDay.Friday)
     {
         return("friday");
     }
     if (value == JobScheduleDay.Saturday)
     {
         return("saturday");
     }
     if (value == JobScheduleDay.Sunday)
     {
         return("sunday");
     }
     throw new ArgumentOutOfRangeException("value");
 }
        internal static string ToSerializedValue(this JobScheduleDay value)
        {
            switch (value)
            {
            case JobScheduleDay.Monday:
                return("Monday");

            case JobScheduleDay.Tuesday:
                return("Tuesday");

            case JobScheduleDay.Wednesday:
                return("Wednesday");

            case JobScheduleDay.Thursday:
                return("Thursday");

            case JobScheduleDay.Friday:
                return("Friday");

            case JobScheduleDay.Saturday:
                return("Saturday");

            case JobScheduleDay.Sunday:
                return("Sunday");
            }
            return(null);
        }
 /// <summary>
 /// Initializes a new instance of the JobScheduleMonthlyOccurrence
 /// class with required arguments.
 /// </summary>
 public JobScheduleMonthlyOccurrence(JobScheduleDay day)
     : this()
 {
     this.Day = day;
 }
 /// <summary>
 /// Initializes a new instance of the JobScheduleMonthlyOccurrence
 /// class with required arguments.
 /// </summary>
 public JobScheduleMonthlyOccurrence(JobScheduleDay day)
     : this()
 {
     this.Day = day;
 }