public void GetObjectData(object obj,System.Runtime.Serialization.SerializationInfo info,System.Runtime.Serialization.StreamingContext context ) { info.SetType(this.GetType()); WorksheetView s = (WorksheetView)obj; info.AddValue("Location",s.Location); info.AddValue("Size",s.Size); info.AddValue("Controller",s.m_Ctrl); }
/// <summary> /// Overridden to use the <see cref="VwPropSBondBudgetView_SerializationHelper"></see> class /// for deserialization of <see cref="VwPropSBondBudgetView"></see> data. /// </summary> /// <remarks> /// Since the <see cref="VwPropSBondBudgetView"></see> class is implemented using the Singleton design pattern, /// this method must be overridden to prevent additional instances from being created during deserialization. /// </remarks> void System.Runtime.Serialization.ISerializable.GetObjectData( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { info.SetType(typeof(VwPropSBondBudgetView_SerializationHelper)); //No other values need to be added }
/// <summary> /// Sets the SerializationInfo with information about the exception. /// </summary> /// <param name="info"> The SerializationInfo that holds the serialized object data about /// the exception being thrown. </param> /// <param name="context"> The StreamingContext that contains contextual information about /// the source or destination. </param> public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { // Save the object state. info.SetType(typeof(SerializationHelper)); }
/// <summary> /// Overridden to use the <see cref="EstLineAdjTable_SerializationHelper"></see> class /// for deserialization of <see cref="EstLineAdjTable"></see> data. /// </summary> /// <remarks> /// Since the <see cref="EstLineAdjTable"></see> class is implemented using the Singleton design pattern, /// this method must be overridden to prevent additional instances from being created during deserialization. /// </remarks> void System.Runtime.Serialization.ISerializable.GetObjectData( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { info.SetType(typeof(EstLineAdjTable_SerializationHelper)); //No other values need to be added }
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { info.SetType(typeof(DisplayNoneSerializationHelper)); }