Example #1
0
 public static void Save(IValueSink sink, AccumulatorRecord value)
 {
     sink.EnterSequence();
     Value<DateAndTime>.Save(sink, value.Timestamp);
     Value<uint>.Save(sink, value.PresentValue);
     Value<uint>.Save(sink, value.AccumulatedValue);
     Value<AccumulatorStatusType>.Save(sink, value.AccumulatorStatus);
     sink.LeaveSequence();
 }
Example #2
0
        public static void Save(IValueSink sink, AccumulatorRecord value)
        {
            sink.EnterSequence();
            Value <DateAndTime> .Save(sink, value.Timestamp);

            Value <uint> .Save(sink, value.PresentValue);

            Value <uint> .Save(sink, value.AccumulatedValue);

            Value <AccumulatorStatusType> .Save(sink, value.AccumulatorStatus);

            sink.LeaveSequence();
        }