Ejemplo n.º 1
0
 internal void OnSerializing(StreamingContext context)
 {
     // begin by serializing the algebra context
     if (this.Group == null)
     {
         throw new SerializationException("Cannot serialize Algebra because Group is null.");
     }
     _group = new GroupSerializable(this.Group);
 }
Ejemplo n.º 2
0
 public void SerializeGroup(StreamingContext context)
 {
     // begin by serializing the group context
     if (this.IsGroupSerializable)
     {
         if (this.Group == null)
         {
             throw new SerializationException("Private member Group must be set with a non-null group.");
         }
         _group = new GroupSerializable(this.Group);
     }
     else
     {
         this._group = null;
     }
 }