Odbicie GetProperty skutkuje „znalezieniem niejednoznacznego dopasowania” na nowej właściwości
Jak mogę dostać moją własność? Obecnie występuje błądAmbiguous match found
, zobacz wiersz komentarza w kodzie.
public class MyBaseEntity
{
public MyBaseEntity MyEntity { get; set; }
}
public class MyDerivedEntity : MyBaseEntity
{
public new MyDerivedEntity MyEntity { get; set; }
}
private static void Main(string[] args)
{
MyDerivedEntity myDE = new MyDerivedEntity();
PropertyInfo propInfoSrcObj = myDE.GetType().GetProperty("MyEntity");
//-- ERROR: Ambiguous match found
}