Servicestack.Core 中的 ServiceStack 不明确冲突
ServiceStack ambiguous conflict in Servicestack.Core
Servicestack.Core
我需要从反射中得到 属性:
PropertyInfo property = branch.GetType().GetProperty("Prop");
但是我遇到了这个冲突:
The call is ambiguous between the following methods or properties:
'ServiceStack.PlatformExtensions.GetProperty(System.Type, string)' and
'System.Reflection.TypeExtensions.GetProperty(System.Type, string)'
我该如何解决这个问题?
谢谢!
删除对 System.Reflection.TypeExtensions
的包引用或使用完全限定的方法 System.Reflection.TypeExtensions.GetProperty()
Servicestack.Core
我需要从反射中得到 属性:
PropertyInfo property = branch.GetType().GetProperty("Prop");
但是我遇到了这个冲突:
The call is ambiguous between the following methods or properties: 'ServiceStack.PlatformExtensions.GetProperty(System.Type, string)' and 'System.Reflection.TypeExtensions.GetProperty(System.Type, string)'
我该如何解决这个问题?
谢谢!
删除对 System.Reflection.TypeExtensions
的包引用或使用完全限定的方法 System.Reflection.TypeExtensions.GetProperty()