VPet.Solution 修复bug

This commit is contained in:
Hakoyu 2024-01-13 22:23:34 +08:00
parent 83d902e635
commit e9f00b2f7a
2 changed files with 3 additions and 6 deletions

View File

@ -92,7 +92,7 @@ public static class ReflectionUtils
continue;
}
if (
property.IsDefined(typeof(ReflectionPropertyIgnoreAttribute))
property.IsDefined(typeof(ReflectionPropertyAttribute))
&& property.IsDefined(typeof(ReflectionPropertyConverterAttribute)) is false
)
continue;
@ -229,10 +229,7 @@ public class ReflectionPropertyConverterAttribute : Attribute
/// 反射属性忽视
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class ReflectionPropertyIgnoreAttribute : Attribute
{
public ReflectionPropertyIgnoreAttribute() { }
}
public class ReflectionPropertyIgnoreAttribute : Attribute { }
/// <summary>
/// 反射设置

View File

@ -173,7 +173,7 @@ public class SettingWindowVM : ObservableClass<SettingWindowVM>
{
if (
MessageBox.Show(
"设置载入失败, 是否强制载入并重置\n[是]: 载入并重置\t[否]: 取消载入\n名称: {0}\n路径: {1}\n{2}".Translate(
"设置载入失败, 是否强制载入并重置\n[是]: 载入并重置\t[否]: 取消载入\n名称: {0}\n路径: {1}\n异常: {2}".Translate(
fileName,
file,
ex.ToString()