Unable to Serialize a string object dictionary containing a string array as object
Opened this issue · 0 comments
agenne commented
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; }
}
}