System.Reflection.AmbiguousMatchException:“Ambiguous match found.” 報錯問題 解決

 

System.Reflection.AmbiguousMatchException:“Ambiguous match found.”

問題原因:

 

是因爲實體有兩個同名屬性(基類和子類)

子類用了New關鍵字修飾。

 

 

 

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章