Compare commits
No commits in common. "a64127537e520e186b2333b0587cb1f03ae2bcc4" and "0d8319feaa340b002b9d4fcb82724693580525ba" have entirely different histories.
a64127537e
...
0d8319feaa
|
|
@ -60,16 +60,8 @@ namespace IRaCIS.Core.Infrastructure.Extention
|
||||||
string propertyName = property.Name;
|
string propertyName = property.Name;
|
||||||
object propertyValue = property.GetValue(obj);
|
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;
|
return dictionary;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue