You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Top
{
public Middle[] MiddleArray { get; set; }
}
public class Middle
{
public string Name { get; set; }
public string Location { get; set; }
}
var test = new Top();
test.MiddleArray = new Middle[]
{
new Middle {Name = "Place1", Location = "Location1" },
new Middle {Name = "Place2", Location = "Location2" }
};
This will generate an object graph, but the MiddleArray property will be an empty array.
After debugging, it looks like it fails the ruleSet PropertyInClassRuleSet, the expressionType is "ConsoleApplication1.Middle[]" and the dataMemberPropertyName is [0]. Since the return value of the GetProperties on an array returns the Array type properties, it fails.
The text was updated successfully, but these errors were encountered:
Given the following classes:
This will generate an object graph, but the MiddleArray property will be an empty array.
After debugging, it looks like it fails the ruleSet PropertyInClassRuleSet, the expressionType is "ConsoleApplication1.Middle[]" and the dataMemberPropertyName is [0]. Since the return value of the GetProperties on an array returns the Array type properties, it fails.
The text was updated successfully, but these errors were encountered: