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/SimpleRectangle.Serialization.cs

    r2768 r4068  
    11using System;
    2 using System.Collections.Generic;
    3 using System.Text;
    4 using System.Drawing;
    5 using System.ComponentModel;
     2using System.Diagnostics;
    63using System.Runtime.Serialization;
     4using System.Xml.Schema;
    75using System.Xml.Serialization;
    8 using System.Diagnostics;
    9 using System.Xml.Schema;
    10 namespace Netron.Diagramming.Core
    11 {
     6namespace Netron.Diagramming.Core {
     7  /// <summary>
     8  /// Complementary partial class related to (de)serialization.
     9  /// </summary>
     10  [Serializable]
     11  public partial class SimpleRectangle : ISerializable, IXmlSerializable, IDeserializationCallback {
     12    #region Deserialization constructor
    1213    /// <summary>
    13     /// Complementary partial class related to (de)serialization.
     14    /// Deserialization constructor
    1415    /// </summary>
    15    [Serializable]
    16     public partial class SimpleRectangle : 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 SimpleRectangle(SerializationInfo info, StreamingContext context)
    25             : base(info, context)
    26         {
    27             if(Tracing.BinaryDeserializationSwitch.Enabled)
    28                 Trace.WriteLine("Deserializing the fields of 'SimpleRectangle'.");
     16    /// <param name="info">The info.</param>
     17    /// <param name="context">The context.</param>
     18    protected SimpleRectangle(SerializationInfo info, StreamingContext context)
     19      : base(info, context) {
     20      if (Tracing.BinaryDeserializationSwitch.Enabled)
     21        Trace.WriteLine("Deserializing the fields of 'SimpleRectangle'.");
    2922
    30             double version = info.GetDouble("SimpleRectangleVersion");
    31         }
    32         #endregion
     23      double version = info.GetDouble("SimpleRectangleVersion");
     24    }
     25    #endregion
    3326
    34         #region Serialization events
    35        /*
     27    #region Serialization events
     28    /*
    3629        [OnSerializing]
    3730        void OnSerializing(StreamingContext context)
     
    4740        }
    4841        */
    49         #endregion
     42    #endregion
    5043
    51         #region Deserialization events
    52        /*
     44    #region Deserialization events
     45    /*
    5346        [OnDeserializing]     
    5447        void OnDeserializing(StreamingContext context)
     
    6457         }
    6558       */
    66         #endregion
     59    #endregion
    6760
    68         #region Serialization
    69         /// <summary>
    70         /// Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> with the data needed to serialize the target object.
    71         /// </summary>
    72         /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> to populate with data.</param>
    73         /// <param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext"></see>) for this serialization.</param>
    74         /// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission. </exception>
    75         public override void GetObjectData(SerializationInfo info, StreamingContext context)
    76         {
    77             if(Tracing.BinarySerializationSwitch.Enabled)
    78                 Trace.WriteLine("Serializing the fields of 'SimpleRectangle'.");
    79             base.GetObjectData(info, context);
     61    #region Serialization
     62    /// <summary>
     63    /// Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> with the data needed to serialize the target object.
     64    /// </summary>
     65    /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> to populate with data.</param>
     66    /// <param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext"></see>) for this serialization.</param>
     67    /// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission. </exception>
     68    public override void GetObjectData(SerializationInfo info, StreamingContext context) {
     69      if (Tracing.BinarySerializationSwitch.Enabled)
     70        Trace.WriteLine("Serializing the fields of 'SimpleRectangle'.");
     71      base.GetObjectData(info, context);
    8072
    81             info.AddValue("SimpleRectangleVersion", simpleRectangleVersion);
    82         }
    83         #endregion
     73      info.AddValue("SimpleRectangleVersion", simpleRectangleVersion);
     74    }
     75    #endregion
    8476
    85         #region Xml serialization
    86         /// <summary>
    87         /// This property is reserved, apply the <see cref="T:System.Xml.Serialization.XmlSchemaProviderAttribute"></see> to the class instead.
    88         /// </summary>
    89         /// <returns>
    90         /// 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.
    91         /// </returns>
    92         public override XmlSchema GetSchema()
    93         {
    94             throw new NotImplementedException("The method or operation is not implemented.");
    95         }
     77    #region Xml serialization
     78    /// <summary>
     79    /// This property is reserved, apply the <see cref="T:System.Xml.Serialization.XmlSchemaProviderAttribute"></see> to the class instead.
     80    /// </summary>
     81    /// <returns>
     82    /// 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.
     83    /// </returns>
     84    public override XmlSchema GetSchema() {
     85      throw new NotImplementedException("The method or operation is not implemented.");
     86    }
    9687
    97         /// <summary>
    98         /// Generates an object from its XML representation.
    99         /// </summary>
    100         /// <param name="reader">The <see cref="T:System.Xml.XmlReader"></see> stream from which the object is deserialized.</param>
    101         public override void ReadXml(System.Xml.XmlReader reader)
    102         {
    103             throw new NotImplementedException("The method or operation is not implemented.");
    104         }
     88    /// <summary>
     89    /// Generates an object from its XML representation.
     90    /// </summary>
     91    /// <param name="reader">The <see cref="T:System.Xml.XmlReader"></see> stream from which the object is deserialized.</param>
     92    public override void ReadXml(System.Xml.XmlReader reader) {
     93      throw new NotImplementedException("The method or operation is not implemented.");
     94    }
    10595
    106         /// <summary>
    107         /// Converts an object into its XML representation.
    108         /// </summary>
    109         /// <param name="writer">The <see cref="T:System.Xml.XmlWriter"></see> stream to which the object is serialized.</param>
    110         public override void WriteXml(System.Xml.XmlWriter writer)
    111         {
    112             throw new NotImplementedException("The method or operation is not implemented.");
    113         }
    114         #endregion
     96    /// <summary>
     97    /// Converts an object into its XML representation.
     98    /// </summary>
     99    /// <param name="writer">The <see cref="T:System.Xml.XmlWriter"></see> stream to which the object is serialized.</param>
     100    public override void WriteXml(System.Xml.XmlWriter writer) {
     101      throw new NotImplementedException("The method or operation is not implemented.");
     102    }
     103    #endregion
    115104
    116105
    117106
    118         /// <summary>
    119         /// Runs when the entire object graph has been deserialized.
    120         /// </summary>
    121         /// <param name="sender">The object that initiated the callback. The functionality for this parameter is not currently implemented.</param>
    122         public override void  OnDeserialization(object sender)
    123         {
    124             base.OnDeserialization(sender);
    125             if(Tracing.BinaryDeserializationSwitch.Enabled)
    126                 Trace.WriteLine("IDeserializationCallback of 'SimpleRectangle' called.");
    127            
     107    /// <summary>
     108    /// Runs when the entire object graph has been deserialized.
     109    /// </summary>
     110    /// <param name="sender">The object that initiated the callback. The functionality for this parameter is not currently implemented.</param>
     111    public override void OnDeserialization(object sender) {
     112      base.OnDeserialization(sender);
     113      if (Tracing.BinaryDeserializationSwitch.Enabled)
     114        Trace.WriteLine("IDeserializationCallback of 'SimpleRectangle' called.");
    128115
    129         }
     116
    130117    }
     118  }
    131119}
Note: See TracChangeset for help on using the changeset viewer.