Compare commits

..

No commits in common. "a64127537e520e186b2333b0587cb1f03ae2bcc4" and "0d8319feaa340b002b9d4fcb82724693580525ba" have entirely different histories.

1 changed files with 1 additions and 9 deletions

View File

@ -60,15 +60,7 @@ namespace IRaCIS.Core.Infrastructure.Extention
string propertyName = property.Name;
object propertyValue = property.GetValue(obj);
// 如果属性的类型是枚举,将其值保留为整数
if (property.PropertyType.IsEnum)
{
dictionary.Add(propertyName, (int)propertyValue);
}
else
{
dictionary.Add(propertyName, propertyValue);
}
dictionary.Add(propertyName, propertyValue);
}
return dictionary;