mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-05 08:30:18 +00:00
Don't serialize private get properties
This commit is contained in:
@@ -556,7 +556,7 @@ namespace ArchiSteamFarm {
|
||||
result[field.Name] = field.FieldType.GetUnifiedName();
|
||||
}
|
||||
|
||||
foreach (PropertyInfo property in targetType.GetProperties(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public).Where(property => property.CanRead)) {
|
||||
foreach (PropertyInfo property in targetType.GetProperties(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public).Where(property => property.CanRead && !property.GetMethod.IsPrivate)) {
|
||||
result[property.Name] = property.PropertyType.GetUnifiedName();
|
||||
}
|
||||
} else if (targetType.IsEnum) {
|
||||
|
||||
Reference in New Issue
Block a user