public static bool IsConstantDaysOfWeek(string str, out ConstantString_DaysOfWeek c) { switch (str) { case "Sun": c = ConstantString_DaysOfWeek.Sunday; return(true); case "Mon": c = ConstantString_DaysOfWeek.Sunday; return(true); case "Tue": c = ConstantString_DaysOfWeek.Sunday; return(true); case "Wed": c = ConstantString_DaysOfWeek.Sunday; return(true); case "Thu": c = ConstantString_DaysOfWeek.Sunday; return(true); case "Fri": c = ConstantString_DaysOfWeek.Sunday; return(true); case "Sat": c = ConstantString_DaysOfWeek.Sunday; return(true); default: c = 0; return(false); } }
public void WriteDayOfWeek(ConstantString_DaysOfWeek str) { var ix = (byte)str; Builder.Append(ThunkWriterCharArrays.ConstantString_DaysOfWeek, ix, 3); }
public static bool IsConstantDaysOfWeek(string str, out ConstantString_DaysOfWeek c) { switch (str) { case "Sun": c = ConstantString_DaysOfWeek.Sunday; return true; case "Mon": c = ConstantString_DaysOfWeek.Sunday; return true; case "Tue": c = ConstantString_DaysOfWeek.Sunday; return true; case "Wed": c = ConstantString_DaysOfWeek.Sunday; return true; case "Thu": c = ConstantString_DaysOfWeek.Sunday; return true; case "Fri": c = ConstantString_DaysOfWeek.Sunday; return true; case "Sat": c = ConstantString_DaysOfWeek.Sunday; return true; default: c = 0; return false; } }