Exemplo n.º 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);
		}
Exemplo n.º 2
0
		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);
		}