Click here to Skip to main content
15,884,537 members
Articles / Programming Languages / C#

A Fast/Compact Serialization Framework

Rate me:
Please Sign up or sign in to vote.
4.85/5 (37 votes)
13 Oct 2010GPL35 min read 281.9K   1.2K   175  
A framework for object serializiation/deserialization that is many times faster and yields a compact output.
<html dir="LTR">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
    <title>NxKnownSurrogateElement Members</title>
    <xml>
    </xml>
    <link rel="stylesheet" type="text/css" href="MSDN.css" />
  </head>
  <body id="bodyID" class="dtBODY">
    <div id="nsbanner">
      <div id="bannerrow1">
        <table class="bannerparthead" cellspacing="0">
          <tr id="hdr">
            <td class="runninghead">OpenNxSerialization API Reference</td>
            <td class="product">
            </td>
          </tr>
        </table>
      </div>
      <div id="TitleRow">
        <h1 class="dtH1">NxKnownSurrogateElement Members
					</h1>
      </div>
    </div>
    <div id="nstext">
      <p>
        <a href="NeXtreme.OpenNxSerialization.Configuration.NxKnownSurrogateElement.html">NxKnownSurrogateElement overview</a>
      </p>
      <h4 class="dtH4">Public Instance Constructors</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
          <tr VALIGN="top">
            <td width="50%">
              <img src="pubmethod.gif" />
              <a href="NeXtreme.OpenNxSerialization.Configuration.NxKnownSurrogateElementConstructor.html">NxKnownSurrogateElement</a>
            </td>
            <td width="50%">Overloaded. Initializes a new instance of the NxKnownSurrogateElement class.</td>
          </tr>
        </table>
      </div>
      <h4 class="dtH4">Public Instance Properties</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassElementInformationTopic.asp">ElementInformation</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets an <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationElementInformationClassTopic.asp">ElementInformation</a> object that contains the non-customizable information and functionality of the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassLockAllAttributesExceptTopic.asp">LockAllAttributesExcept</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets the collection of locked attributes.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassLockAllElementsExceptTopic.asp">LockAllElementsExcept</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets the collection of locked elements.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassLockAttributesTopic.asp">LockAttributes</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets the collection of locked attributes </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassLockElementsTopic.asp">LockElements</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets the collection of locked elements.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassLockItemTopic.asp">LockItem</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets or sets a value indicating whether the element is locked.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="NeXtreme.OpenNxSerialization.Configuration.NxKnownSurrogateElement.TypeHandle.html">TypeHandle</a></td><td width="50%"> Get/Set the typeHandle attribute of the surrogate element in knownSurrogates. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="NeXtreme.OpenNxSerialization.Configuration.NxKnownSurrogateElement.TypeName.html">TypeName</a></td><td width="50%"> Get/Set the typeName attribute of the surrogate element in knownSurrogates. </td></tr></table>
      </div>
      <h4 class="dtH4">Public Instance Methods</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassEqualsTopic.asp">Equals</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Compares the current <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> instance to the specified object.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassGetHashCodeTopic.asp">GetHashCode</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets a unique value representing the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> current instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassGetTypeTopic.asp">GetType</a> (inherited from <b>Object</b>)</td><td width="50%">Gets the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemTypeClassTopic.asp">Type</a> of the current instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassIsReadOnlyTopic.asp">IsReadOnly</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets a value indicating whether the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object is read-only.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassToStringTopic.asp">ToString</a> (inherited from <b>Object</b>)</td><td width="50%">Returns a <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemStringClassTopic.asp">String</a> that represents the current <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassTopic.asp">Object</a>.</td></tr></table>
      </div>
      <h4 class="dtH4">Protected Instance Properties</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="protproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassEvaluationContextTopic.asp">EvaluationContext</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationContextInformationClassTopic.asp">ContextInformation</a> object for the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object.</td></tr></table>
      </div>
      <h4 class="dtH4">Protected Instance Methods</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassFinalizeTopic.asp">Finalize</a> (inherited from <b>Object</b>)</td><td width="50%">Allows an <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassTopic.asp">Object</a> to attempt to free resources and perform other cleanup operations before the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassTopic.asp">Object</a> is reclaimed by garbage collection.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassListErrorsTopic.asp">ListErrors</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Adds the invalid-property errors in this <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object, and in all subelements, to the passed list.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassMemberwiseCloneTopic.asp">MemberwiseClone</a> (inherited from <b>Object</b>)</td><td width="50%">Creates a shallow copy of the current <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassTopic.asp">Object</a>.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassOnDeserializeUnrecognizedAttributeTopic.asp">OnDeserializeUnrecognizedAttribute</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets a value indicating whether an unknown attribute is encountered during deserialization.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassOnDeserializeUnrecognizedElementTopic.asp">OnDeserializeUnrecognizedElement</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets a value indicating whether an unknown element is encountered during deserialization.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassOnRequiredPropertyNotFoundTopic.asp">OnRequiredPropertyNotFound</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets a value indicating whether a required property is not found.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassPostDeserializeTopic.asp">PostDeserialize</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Called after deserialization.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassPreSerializeTopic.asp">PreSerialize</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Called before serialization.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassSetPropertyValueTopic.asp">SetPropertyValue</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Sets a property to the specified value.</td></tr></table>
      </div>
      <h4 class="dtH4">Protected Internal Instance Properties</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="intproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassElementPropertyTopic.asp">ElementProperty</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementPropertyClassTopic.asp">ConfigurationElementProperty</a> object that represents the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object itself.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassItemTopic.asp">Item</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets or sets a property or attribute of this configuration element.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassItemTopic.asp">Item</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets or sets a property, attribute, or child element of this configuration element.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intproperty.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassPropertiesTopic.asp">Properties</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Gets the collection of properties.</td></tr></table>
      </div>
      <h4 class="dtH4">Protected Internal Instance Methods</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassDeserializeElementTopic.asp">DeserializeElement</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Reads XML from the configuration file.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassInitTopic.asp">Init</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Sets the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object to its initial state.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassInitializeDefaultTopic.asp">InitializeDefault</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Used to initialize a default set of values for the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassIsModifiedTopic.asp">IsModified</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Indicates whether this configuration element has been modified since it was last saved or loaded, when implemented in a derived class.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassResetTopic.asp">Reset</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Resets the internal state of the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object, including the locks and the properties collections.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassResetModifiedTopic.asp">ResetModified</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Resets the value of the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassIsModifiedTopic.asp">IsModified</a> method to false when implemented in a derived class.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassSerializeElementTopic.asp">SerializeElement</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Writes the contents of this configuration element to the configuration file when implemented in a derived class.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassSerializeToXmlElementTopic.asp">SerializeToXmlElement</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Writes the outer tags of this configuration element to the configuration file when implemented in a derived class.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassSetReadOnlyTopic.asp">SetReadOnly</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Sets the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassIsReadOnlyTopic.asp">IsReadOnly</a> property for the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object and all subelements.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="intmethod.gif"></img><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassUnmergeTopic.asp">Unmerge</a> (inherited from <b>ConfigurationElement</b>)</td><td width="50%">Modifies the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConfigurationConfigurationElementClassTopic.asp">ConfigurationElement</a> object to remove all values that should not be saved. </td></tr></table>
      </div>
      <h4 class="dtH4">See Also</h4>
      <p>
        <a href="NeXtreme.OpenNxSerialization.Configuration.NxKnownSurrogateElement.html">NxKnownSurrogateElement Class</a> | <a href="NeXtreme.OpenNxSerialization.Configuration.html">NeXtreme.OpenNxSerialization.Configuration Namespace</a></p>
      <hr />
      <div id="footer">
        <p>
          <a href="mailto:alleey@gmail.com?subject=OpenNxSerialization%20API%20Reference%20Documentation%20Feedback:%20NxKnownSurrogateElement%20Members&#xD;&#xA;						">Send comments on this topic.</a>
        </p>
        <p>
          <a>Copyright (C) 2006 - 2007, NeXtreme Innovations. All rights reserved.</a>
        </p>
        <p>Generated from assembly NeXtreme.OpenNxSerialization.Configuration [1.0.0.0]</p>
      </div>
    </div>
  </body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Architect
Pakistan Pakistan
Let a = b ....... (1)
a - b = a - b
a^2 - ab = a^2 - ab
a^2 - ab = a^2 - b^2 (from 1)
a (a - b) = (a + b) (a - b)
a = (a + b) ...... (2)

if a = 1
1 = (1 + 1) (from 1 & 2)
1 = 2 !!

Comments and Discussions