Showing the changes to Source/Libraries/GSF.Core/Configuration/ConnectionStringParser.cs (1 of 2 files). Show all
Unified · Split
| @@ -384,7 +384,8 @@ namespace GSF.Configuration · 383 unmodified lines | ||
| 384 | 384 | { |
| 385 | 385 | SerializeSettingAttribute attribute; |
| 386 | 386 | |
| 387 | − return t.GetProperties() | |
| 387 | + return t.GetProperties(BindingFlags.Public | BindingFlags.Instance) | |
| 388 | + .Where(property => property.CanRead && property.CanWrite) | |
| 388 | 389 | .Where(property => !property.TryGetAttribute(out attribute) || attribute.Serialize) |
| 389 | 390 | .Select(property => new ConnectionStringProperty(property)) |
| 390 | 391 | .ToArray(); |
| @@ -394,7 +395,8 @@ namespace GSF.Configuration · 3 unmodified lines | ||
| 394 | 395 | { |
| 395 | 396 | SerializeSettingAttribute attribute; |
| 396 | 397 | |
| 397 | − return t.GetProperties() | |
| 398 | + return t.GetProperties(BindingFlags.Public | BindingFlags.Instance) | |
| 399 | + .Where(property => property.CanRead && property.CanWrite) | |
| 398 | 400 | .Where(property => property.TryGetAttribute(out attribute) && attribute.Serialize) |
| 399 | 401 | .Select(property => new ConnectionStringProperty(property)) |
| 400 | 402 | .ToArray(); |
| @@ -457,7 +459,8 @@ namespace GSF.Configuration · 56 unmodified lines | ||
| 457 | 459 | { |
| 458 | 460 | TParameterAttribute attribute; |
| 459 | 461 | |
| 460 | − return t.GetProperties() | |
| 462 | + return t.GetProperties(BindingFlags.Public | BindingFlags.Instance) | |
| 463 | + .Where(property => property.CanRead && property.CanWrite) | |
| 461 | 464 | .Where(property => property.TryGetAttribute(out attribute)) |
| 462 | 465 | .Select(property => new ConnectionStringProperty(property)) |
| 463 | 466 | .ToArray(); |