mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-17 22:38:27 +08:00
Fix .Net core build
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user