<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGenerics%2FGeneric_Serialization</id>
		<title>Csharp/C Sharp/Generics/Generic Serialization - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGenerics%2FGeneric_Serialization"/>
		<link rel="alternate" type="text/html" href="http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Generics/Generic_Serialization&amp;action=history"/>
		<updated>2026-04-18T10:06:26Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Generics/Generic_Serialization&amp;diff=1354&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Generics/Generic_Serialization&amp;diff=1354&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Generics/Generic_Serialization&amp;diff=1355&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Generics/Generic_Serialization&amp;diff=1355&amp;oldid=prev"/>
				<updated>2010-05-26T11:45:45Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Custom Generic ISerializable==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.Runtime.Serialization;&lt;br /&gt;
using System.Runtime.Serialization.Formatters.Binary;&lt;br /&gt;
[Serializable]&lt;br /&gt;
public class CustomClass1&amp;lt;T&amp;gt; : ISerializable {&lt;br /&gt;
    private int _intData;&lt;br /&gt;
    private string _stringData;&lt;br /&gt;
    private T _genericData;&lt;br /&gt;
    public CustomClass1() { }&lt;br /&gt;
    private CustomClass1(SerializationInfo serInfo, StreamingContext context) {&lt;br /&gt;
        _intData = (int)serInfo.GetValue(&amp;quot;_intData&amp;quot;, typeof(int));&lt;br /&gt;
        _stringData = (string)serInfo.GetValue(&amp;quot;_stringData&amp;quot;, typeof(string));&lt;br /&gt;
        _genericData = (T)serInfo.GetValue(&amp;quot;_genericData&amp;quot;, typeof(T));&lt;br /&gt;
    }&lt;br /&gt;
    public CustomClass1(int intData, string stringData, T genericType) {&lt;br /&gt;
        this._intData = intData;&lt;br /&gt;
        this._stringData = stringData;&lt;br /&gt;
        this._genericData = genericType;&lt;br /&gt;
    }&lt;br /&gt;
    public void GetObjectData(SerializationInfo serInfo, StreamingContext context) {&lt;br /&gt;
        serInfo.AddValue(&amp;quot;_intData&amp;quot;, _intData);&lt;br /&gt;
        serInfo.AddValue(&amp;quot;_stringData&amp;quot;, _stringData);&lt;br /&gt;
        serInfo.AddValue(&amp;quot;_genericData&amp;quot;, _genericData, _genericData.GetType());&lt;br /&gt;
    }&lt;br /&gt;
    public int IntVal {&lt;br /&gt;
        get { return this._intData; }&lt;br /&gt;
    }&lt;br /&gt;
    public string StrVal {&lt;br /&gt;
        get { return this._stringData; }&lt;br /&gt;
    }&lt;br /&gt;
    public T GenericVal {&lt;br /&gt;
        get { return this._genericData; }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
public class MainClass{&lt;br /&gt;
    public static void Main(){&lt;br /&gt;
        CustomClass1&amp;lt;Double&amp;gt; doubleClass;&lt;br /&gt;
        doubleClass = new CustomClass1&amp;lt;Double&amp;gt;(111, &amp;quot;Value1&amp;quot;, 939.99);&lt;br /&gt;
        MemoryStream stream = new MemoryStream();&lt;br /&gt;
        BinaryFormatter formatter = new BinaryFormatter();&lt;br /&gt;
        formatter.Serialize(stream, doubleClass);&lt;br /&gt;
        stream.Seek(0, SeekOrigin.Begin);&lt;br /&gt;
        CustomClass1&amp;lt;Double&amp;gt; newClass = (CustomClass1&amp;lt;Double&amp;gt;)formatter.Deserialize(stream);&lt;br /&gt;
        Console.Out.WriteLine(&amp;quot;Int Data Member : {0}&amp;quot;, newClass.IntVal);&lt;br /&gt;
        Console.Out.WriteLine(&amp;quot;String Data Member : {0}&amp;quot;, newClass.StrVal);&lt;br /&gt;
        Console.Out.WriteLine(&amp;quot;Generic Data Member : {0}&amp;quot;, newClass.GenericVal);&lt;br /&gt;
    &lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>