private void Serialize(string name, CsnTransition tt, JsonTextWriter json) { if (tt != null) { json.WritePropertyName(name); json.WriteStartObject(); json.WritePropertyName(this.names[13]); json.WriteValue(tt.IsFixedDateRule); json.WritePropertyName(this.names[14]); json.WriteValue(tt.Day); json.WritePropertyName(this.names[15]); json.WriteValue(tt.Month); json.WritePropertyName(this.names[16]); json.WriteValue(tt.TimeOfDay); json.WritePropertyName(this.names[17]); json.WriteValue(tt.Week); json.WritePropertyName(this.names[18]); json.WriteValue(tt.DayOfWeek); json.WriteEndObject(); } }
private long?WriteTrTime(CsnTransition tt, Writer w, long?ttType) { return((tt == null) ? (long?)null : w.WriteInstance(ttType.Value).W(tt.IsFixedDateRule).W(tt.Day).W(tt.Month).W(tt.TimeOfDay).W(tt.Week).W(tt.DayOfWeek).Current); }
private long WriteTrTime(CsnTransition tt, Writer w, long ttType) { return(w.WriteInstance(ttType).W(tt.IsFixedDateRule).W(tt.Day).W(tt.Month).W(tt.TimeOfDay).W(tt.Week).W(tt.DayOfWeek).Current); }