Example #1
0
 internal override void Unmarshall(Transaction a_trans)
 {
     if (i_trans == null)
     {
         base.Unmarshall(a_trans);
         if (i_marshalledID > 0 || !Platform4.UseNativeSerialization())
         {
             i_evaluation = Serializer.Unmarshall(Container(), i_marshalledEvaluation, i_marshalledID
                                                  );
         }
         else
         {
             i_evaluation = Platform4.Deserialize(i_marshalledEvaluation);
         }
     }
 }
Example #2
0
 internal override void Marshall()
 {
     base.Marshall();
     if (!Platform4.UseNativeSerialization())
     {
         MarshallUsingDb4oFormat();
     }
     else
     {
         try
         {
             i_marshalledEvaluation = Platform4.Serialize(i_evaluation);
         }
         catch (Exception)
         {
             MarshallUsingDb4oFormat();
         }
     }
 }