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); }
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; } }