Beispiel #1
0
		protected override void OnDeserialize(System.Runtime.Serialization.IFormatter formatter, System.Runtime.Serialization.SurrogateSelector selector)
		{
			ModelSerialize surrogate = new ModelSerialize();
			selector.RemoveSurrogate(typeof(Diagram),new StreamingContext(StreamingContextStates.All));
			selector.AddSurrogate(typeof(Model),new StreamingContext(StreamingContextStates.All), surrogate);
			base.OnDeserialize (formatter, selector);
		}
		protected override void OnDeserialize(System.Runtime.Serialization.IFormatter formatter, System.Runtime.Serialization.SurrogateSelector selector)
		{
			FlowchartSerialize surrogate = new FlowchartSerialize();
			selector.AddSurrogate(typeof(Flowchart),new StreamingContext(StreamingContextStates.All), surrogate);
			base.OnDeserialize (formatter, selector);
		}