Fix .Net core build

This commit is contained in:
Michele Cattafesta
2017-07-11 22:33:39 +01:00
parent 947450a181
commit db229de529

View File

@@ -13,11 +13,16 @@ namespace S7.Net.Types
private static IEnumerable<PropertyInfo> GetAccessableProperties(Type classType)
{
return classType
#if NETFX_CORE
.GetProperties().Where(p => p.GetSetMethod() != null);
#else
.GetProperties(
BindingFlags.SetProperty |
BindingFlags.Public |
BindingFlags.Instance)
.Where(p => p.GetSetMethod() != null);
#endif
}
/// <summary>