Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Serialization/CollectionBase.Serialization.cs

    r2768 r4068  
    11using System;
    22using System.Collections.Generic;
    3 using System.Text;
    4 using System.Drawing;
    5 using System.ComponentModel;
     3using System.Diagnostics;
    64using System.Runtime.Serialization;
     5using System.Xml.Schema;
    76using System.Xml.Serialization;
    8 using System.Diagnostics;
    9 using System.Xml.Schema;
    10 namespace Netron.Diagramming.Core
    11 {
     7namespace Netron.Diagramming.Core {
     8  /// <summary>
     9  /// Complementary partial class related to (de)serialization.
     10  /// </summary>
     11  [Serializable]
     12  public partial class CollectionBase<T> : ISerializable, IXmlSerializable, IDeserializationCallback {
     13    #region Deserialization constructor
    1214    /// <summary>
    13     /// Complementary partial class related to (de)serialization.
     15    /// Deserialization constructor
    1416    /// </summary>
    15    [Serializable]
    16     public partial class CollectionBase<T> : ISerializable, IXmlSerializable, IDeserializationCallback
    17     {
    18         #region Deserialization constructor
    19         /// <summary>
    20         /// Deserialization constructor
    21         /// </summary>
    22         /// <param name="info">The info.</param>
    23         /// <param name="context">The context.</param>
    24         protected CollectionBase(SerializationInfo info, StreamingContext context)
    25         {
    26             if(Tracing.BinaryDeserializationSwitch.Enabled)
    27                 Trace.WriteLine("Deserializing the fields of 'CollectionBase'.");
    28             innerList = info.GetValue("InnerList", typeof(List<T>)) as List<T>;   
    29         }
    30         #endregion
     17    /// <param name="info">The info.</param>
     18    /// <param name="context">The context.</param>
     19    protected CollectionBase(SerializationInfo info, StreamingContext context) {
     20      if (Tracing.BinaryDeserializationSwitch.Enabled)
     21        Trace.WriteLine("Deserializing the fields of 'CollectionBase'.");
     22      innerList = info.GetValue("InnerList", typeof(List<T>)) as List<T>;
     23    }
     24    #endregion
    3125
    32         #region Serialization events
    33        /*
     26    #region Serialization events
     27    /*
    3428        [OnSerializing]
    3529        void OnSerializing(StreamingContext context)
     
    4539        }
    4640        */
    47         #endregion
     41    #endregion
    4842
    49         #region Deserialization events
    50        /*
     43    #region Deserialization events
     44    /*
    5145        [OnDeserializing]
    5246        void OnDeserializing(StreamingContext context)
     
    6256         }
    6357       */
    64         #endregion
     58    #endregion
    6559
    66         #region Serialization
    67         /// <summary>
    68         /// Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> with the data needed to serialize the target object.
    69         /// </summary>
    70         /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> to populate with data.</param>
    71         /// <param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext"></see>) for this serialization.</param>
    72         /// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission. </exception>
    73         public void GetObjectData(SerializationInfo info, StreamingContext context)
    74         {
    75             if(Tracing.BinarySerializationSwitch.Enabled)
    76                 Trace.WriteLine("Serializing the fields of 'CollectionBase'.");
    77             info.AddValue("InnerList", this.innerList, typeof(List<T>));
    78         }
    79         #endregion
     60    #region Serialization
     61    /// <summary>
     62    /// Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> with the data needed to serialize the target object.
     63    /// </summary>
     64    /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> to populate with data.</param>
     65    /// <param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext"></see>) for this serialization.</param>
     66    /// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission. </exception>
     67    public void GetObjectData(SerializationInfo info, StreamingContext context) {
     68      if (Tracing.BinarySerializationSwitch.Enabled)
     69        Trace.WriteLine("Serializing the fields of 'CollectionBase'.");
     70      info.AddValue("InnerList", this.innerList, typeof(List<T>));
     71    }
     72    #endregion
    8073
    81         #region Xml serialization
    82         /// <summary>
    83         /// This property is reserved, apply the <see cref="T:System.Xml.Serialization.XmlSchemaProviderAttribute"></see> to the class instead.
    84         /// </summary>
    85         /// <returns>
    86         /// An <see cref="T:System.Xml.Schema.XmlSchema"></see> that describes the XML representation of the object that is produced by the <see cref="M:System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter)"></see> method and consumed by the <see cref="M:System.Xml.Serialization.IXmlSerializable.ReadXml(System.Xml.XmlReader)"></see> method.
    87         /// </returns>
    88         public XmlSchema GetSchema()
    89         {
    90             throw new NotImplementedException("The method or operation is not implemented.");
    91         }
     74    #region Xml serialization
     75    /// <summary>
     76    /// This property is reserved, apply the <see cref="T:System.Xml.Serialization.XmlSchemaProviderAttribute"></see> to the class instead.
     77    /// </summary>
     78    /// <returns>
     79    /// An <see cref="T:System.Xml.Schema.XmlSchema"></see> that describes the XML representation of the object that is produced by the <see cref="M:System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter)"></see> method and consumed by the <see cref="M:System.Xml.Serialization.IXmlSerializable.ReadXml(System.Xml.XmlReader)"></see> method.
     80    /// </returns>
     81    public XmlSchema GetSchema() {
     82      throw new NotImplementedException("The method or operation is not implemented.");
     83    }
    9284
    93         /// <summary>
    94         /// Generates an object from its XML representation.
    95         /// </summary>
    96         /// <param name="reader">The <see cref="T:System.Xml.XmlReader"></see> stream from which the object is deserialized.</param>
    97         public void ReadXml(System.Xml.XmlReader reader)
    98         {
    99             throw new NotImplementedException("The method or operation is not implemented.");
    100         }
     85    /// <summary>
     86    /// Generates an object from its XML representation.
     87    /// </summary>
     88    /// <param name="reader">The <see cref="T:System.Xml.XmlReader"></see> stream from which the object is deserialized.</param>
     89    public void ReadXml(System.Xml.XmlReader reader) {
     90      throw new NotImplementedException("The method or operation is not implemented.");
     91    }
    10192
    102         /// <summary>
    103         /// Converts an object into its XML representation.
    104         /// </summary>
    105         /// <param name="writer">The <see cref="T:System.Xml.XmlWriter"></see> stream to which the object is serialized.</param>
    106         public void WriteXml(System.Xml.XmlWriter writer)
    107         {
    108             throw new NotImplementedException("The method or operation is not implemented.");
    109         }
    110         #endregion
     93    /// <summary>
     94    /// Converts an object into its XML representation.
     95    /// </summary>
     96    /// <param name="writer">The <see cref="T:System.Xml.XmlWriter"></see> stream to which the object is serialized.</param>
     97    public void WriteXml(System.Xml.XmlWriter writer) {
     98      throw new NotImplementedException("The method or operation is not implemented.");
     99    }
     100    #endregion
    111101
    112         #region IDeserializationCallback Members
     102    #region IDeserializationCallback Members
    113103
    114         /// <summary>
    115         /// Runs when the entire object graph has been deserialized.
    116         /// </summary>
    117         /// <param name="sender">The object that initiated the callback. The functionality for this parameter is not currently implemented.</param>
    118         public void OnDeserialization(object sender)
    119         {
    120             if(Tracing.BinaryDeserializationSwitch.Enabled)
    121                 Trace.WriteLine("IDeserializationCallback of 'CollectionBase' called.");
    122         }
     104    /// <summary>
     105    /// Runs when the entire object graph has been deserialized.
     106    /// </summary>
     107    /// <param name="sender">The object that initiated the callback. The functionality for this parameter is not currently implemented.</param>
     108    public void OnDeserialization(object sender) {
     109      if (Tracing.BinaryDeserializationSwitch.Enabled)
     110        Trace.WriteLine("IDeserializationCallback of 'CollectionBase' called.");
     111    }
    123112
    124         #endregion
    125     }
     113    #endregion
     114  }
    126115}
Note: See TracChangeset for help on using the changeset viewer.