title: MessagePack deserialize exception in inherited class from Dictionary<,>
body: <p>Hi I have a class like :</p>
  
  <pre><code> public class Event : Dictionary&lt;AttributeType, object&gt;
  </code></pre>
  
  <p>AttributeType is enum</p>
  
  <p>Deserializing will throw an exception</p>
  
  <pre><code>var @event = new Event { { AttributeType.EventId, Guid.NewGuid() } };
  MessagePackSerializer.Deserialize&lt;Event(MessagePackSerializer.Serialize(@event));
  </code></pre>
  
  <p>Exception message is:</p>
  
  <pre><code>System.ArgumentException: 'The value "21" is not of type "BRCo.Core.Common.Enums.AttributeType" and cannot be used in this generic collection.'
  </code></pre>
  
  <p>But when I use this code it's ok</p>
  
  <pre><code>var @event = new Event { { AttributeType.EventId, Guid.NewGuid() } };
  MessagePackSerializer.Deserialize&lt;Dictionary&lt;AttributeType, object&gt;&gt;(MessagePackSerializer.Serialize(@event));
  </code></pre>
  
  <p>Any help?</p>
  
  <p>Thanks</p>