﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Не могу сериализовать объект с полем Security</title>
  <id>~/topic/3780/ne-mogu-serializovat-obekt-s-polem-security/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-07-13T00:06:30Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=3780" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/26498/</id>
    <title type="text">Выбрал 3 вариант. </title>
    <published>2013-06-30T09:07:53Z</published>
    <updated>2013-06-30T09:07:53Z</updated>
    <author>
      <name>Lipot</name>
      <uri>https://stocksharp.com/users/16767/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Выбрал 3 вариант.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/26491/</id>
    <title type="text">Lipot: Есть необходимость сериализовать объект, у которого одно из полей - Dictionary . При компиляц...</title>
    <published>2013-06-29T21:43:48Z</published>
    <updated>2013-06-29T21:43:48Z</updated>
    <author>
      <name>VassilSanych</name>
      <uri>https://stocksharp.com/users/6491/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(26489)" rel="nofollow" target="_blank"&gt;Lipot&lt;/a&gt;:&lt;/strong&gt;
Есть необходимость сериализовать объект, у которого одно из полей - Dictionary &amp;lt;Security, decimal&amp;gt;.
При компиляции Visual Studio ругается на отсутствие атрибута Serialize у класса Transaq Manager. Есть ли какая-либо возможность выйти из ситуации?
Ага.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;не сериализовать объект&lt;/li&gt;
&lt;li&gt;сделать другой объект (не могу придумать, зачем роботу сериализовать словари, которые обычным образом тоже не сериализуются)&lt;/li&gt;
&lt;li&gt;сделать ключом не тяжёлый для сериализации объект Security, а его идентификатор. Сделать сериализуемый словарь. Удивляться почему всё тормозит.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Очевидно непонимание принципов сериализации. Если вы чего-то не понимаете, не делайте этого.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/26489/</id>
    <title type="text">Есть необходимость сериализовать объект, у которого одно из полей - Dictionary . При компиляции Visu...</title>
    <published>2013-06-29T15:13:01Z</published>
    <updated>2013-06-29T15:13:01Z</updated>
    <author>
      <name>Lipot</name>
      <uri>https://stocksharp.com/users/16767/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Есть необходимость сериализовать объект, у которого одно из полей - Dictionary &amp;lt;Security, decimal&amp;gt;.
При компиляции Visual Studio ругается на отсутствие атрибута Serialize у класса Transaq Manager. Есть ли какая-либо возможность выйти из ситуации?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>