Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }