protected void serialize(BaseHomeworkExamGrade into, int offset) { //into.Date = DateTime.SpecifyKind(Date, DateTimeKind.Utc); into.Date = Date; base.serialize(into, offset); }
protected void serialize(BaseHomeworkExamGrade into) { into.Date = Date; into.GradeReceived = GradeReceived; into.GradeTotal = GradeTotal; into.IsDropped = IsDropped; into.IndividualWeight = IndividualWeight; base.serialize(into); }
protected void deserialize(BaseHomeworkExamGrade from, List <PropertyNames> changedProperties) { if (changedProperties != null) { if (Date != from.Date.ToUniversalTime()) { changedProperties.Add(PropertyNames.Date); } } Date = from.Date.ToUniversalTime(); base.deserialize(from, changedProperties); }
protected void deserialize(BaseHomeworkExamGrade from, List <BaseDataItem.SyncPropertyNames> changedProperties) { if (changedProperties != null) { if (Date != from.Date.ToUniversalTime()) { changedProperties.Add(BaseDataItem.SyncPropertyNames.Date); } if (GradeReceived != from.GradeReceived) { changedProperties.Add(SyncPropertyNames.GradeReceived); } if (GradeTotal != from.GradeTotal) { changedProperties.Add(SyncPropertyNames.GradeTotal); } if (IsDropped != from.IsDropped) { changedProperties.Add(SyncPropertyNames.IsDropped); } if (IndividualWeight != from.IndividualWeight) { changedProperties.Add(SyncPropertyNames.IndividualWeight); } } Date = from.Date.ToUniversalTime(); GradeReceived = from.GradeReceived; GradeTotal = from.GradeTotal; IsDropped = from.IsDropped; IndividualWeight = from.IndividualWeight; base.deserialize(from, changedProperties); }
protected void serialize(BaseHomeworkExamGrade into) { into.Date = Date; base.serialize(into); }