GetProperty reflection results in “Ambiguous match found” on new property

前端 未结 7 1163
离开以前
离开以前 2020-12-30 19:25

How can I get my property? Currently an error is occuring of Ambiguous match found, see the comment line in code.

public class MyBaseEntity
{
           


        
7条回答
  •  执笔经年
    2020-12-30 20:08

    For me, in VB.Net, I encountered this super descriptive error when passing a JS object to a function.

    My Object was composed of EF entities which contained references to other entities. Setting those reference properties to nothing resolved this. No idea why this didn't cause a cyclical reference when serializing to send to the JS, but there it is.

提交回复
热议问题