home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / ISerializable.aspx < prev    next >
Encoding:
Text File  |  2000-05-31  |  1.6 KB  |  45 lines

  1.  
  2. <!-- #include virtual="/quickstart/howto/include/header.inc" -->
  3.  
  4. <%
  5.     runsample = Server.MapPath("/quickstart/howto/samples/Serialization/ISerializable")
  6.     viewsource = "/quickstart/howto/samples/Serialization/ISerializable/ISerializable.src"
  7.     icon = "/quickstart/images/Console.gif"
  8.     caption = "ISerializable.exe"
  9. %>
  10.  
  11. <h4>How Do I...Use ISerializable to customize the serialization of a class?</h4>
  12.  
  13. <div class="indent" style="width:660">
  14. This sample illustrates how to use the ISerializable interface to customize
  15.  the serialization of your own objects. This sample serializes a tree of 
  16.  all the namespaces in the mscorlib assembly. To demonstrate the customization
  17.   possible with ISerializable, when the namespace name is written out, "(SAVED)" 
  18.   is appended to indicate that the values are not live. When the data is read back in,  
  19.   this tag could be modified or removed. Note: This samples requires the 
  20.   System.Runtime.Serialization.Formatters.Soap.dll. 
  21. </div>
  22.  
  23. <h4>Example</h4>
  24.  
  25. <p>
  26. <div class="indent">
  27. <a target="_blank" href="<%=runsample%>">
  28. <img style="border-color:black" border=1 src="<%=icon%>"><br>
  29. </a>
  30. <div class="caption"><%=caption%></div><br>
  31. [<a target="_blank" href="<%=runsample%>">View Sample</a>] | 
  32. [<a target="_blank" href="/quickstart/util/srcview.aspx?path=<%=viewsource%>">View Source</a>]<p>
  33. </div>
  34.  
  35. <h4>Source Code</h4>
  36.  
  37. <div class="code">
  38. <xmp>
  39. <!-- #include virtual="/quickstart/howto/samples/serialization/ISerializable/ISerializable.cs" -->
  40. </xmp>
  41. </div>
  42.  
  43.  
  44. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
  45.