AqlaSolutions / AqlaSerializer

Binary serializer with full .NET support!
http://www.aqla.net
Other
17 stars 3 forks source link

Unable to Serialize a string object dictionary containing a string array as object #54

Open agenne opened 2 years ago

agenne commented 2 years ago

Hi, ist it possible to fix this problem: the dictionary serialization failes when the object is a string[]. "Dynamic type is not a contract-type: String[]"

[SerializableType] public class AttributesSample { private int fMyProperty1; [NonSerializableMember] public int MyProperty1 { get => fMyProperty1; set => fMyProperty1 = value; }

public int MyProperty2 { get; set; }

public string[] MyProperty3 { get; set; }

private Dictionary<string, object> fProcessObjectDictionary;
public Dictionary<string, object> ProcessObjectDictionary
{
  get
  {
    if (fProcessObjectDictionary == null)
    {
      fProcessObjectDictionary = new Dictionary<string, object>();
    }
    return fProcessObjectDictionary;
  }
  set { fProcessObjectDictionary = value; }
}

}