I was trying to use interface inheritance with a collection, but when I tried to access the inherited properties for the report generation it threw an exception saying the property didn’t exist.
A simple example would be the following:
public interface InterfaceA
{
public string Comment { get; }
}
public interface InterfaceB : InterfaceA
{
public bool IsValid { get; }
}
The collection is over InterfaceB and I can’t access Comment in the report.