Example #1
0
        public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
        {
            info.SetType(typeof(System.Collections.Generic.Dictionary <object, object>));
            var dictionary = new System.Collections.Generic.Dictionary <object, object>(_dictionary);

            dictionary.GetObjectData(info, context);
        }
Example #2
0
            public void GetObjectData(object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
            {
                info.SetType(this.GetType());
                GraphView s = (GraphView)obj;

                info.AddValue("Location", s.Location);
                info.AddValue("Size", s.Size);
                info.AddValue("Controller", s.m_Ctrl);
            }
Example #3
0
File: Null.cs Project: Kevnz/JS360
 /// <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="UsersGroupsLinkTable_SerializationHelper"></see> class
 /// for deserialization of <see cref="UsersGroupsLinkTable"></see> data.
 /// </summary>
 /// <remarks>
 /// Since the <see cref="UsersGroupsLinkTable"></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(UsersGroupsLinkTable_SerializationHelper)); //No other values need to be added
 }
Example #5
0
 void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     info.SetType(typeof(SingletonSerializationHelper));
 }
Example #6
0
 /// <summary>
 /// Overridden to use the <see cref="View_Trap_SummaryView_SerializationHelper"></see> class
 /// for deserialization of <see cref="View_Trap_SummaryView"></see> data.
 /// </summary>
 /// <remarks>
 /// Since the <see cref="View_Trap_SummaryView"></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(View_Trap_SummaryView_SerializationHelper));     //No other values need to be added
 }
Example #7
0
 public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     info.SetType(typeof(CommonException));
     base.GetObjectData(info, context);
 }