2017-04-08 1 views
1

Servicestack.Core :ServiceStack 모호한 Servicestack.Core에서 충돌</p> <p>내가 반사에서 속성을 가져올 필요

호출은 다음과 모호 :

PropertyInfo property = branch.GetType().GetProperty("Prop"); 

하지만 난이 충돌을 얻을 메서드 또는 속성 : 'ServiceStack.PlatformExtensions.GetProperty (System.Type, string)'및 'System.Reflection.TypeExtensions.GetProperty (System.Type, string)'

이 문제를 어떻게 해결할 수 있습니까?

감사합니다!

답변

2

System.Reflection.TypeExtensions에 대한 패키지 참조를 제거하거나 정규화 된 메서드 System.Reflection.TypeExtensions.GetProperty()

을 사용하십시오.