private Hashtable ConvertDto2Ht()
{
Hashtable _ht = new Hashtable();
PropertyInfo[] propertyInfos = dto.GetType().GetProperties();
foreach (PropertyInfo item in propertyInfos)
{
_ht.Add(item.Name, item.GetValue(dto, null));
}
return _ht;
}
{
Hashtable _ht = new Hashtable();
PropertyInfo[] propertyInfos = dto.GetType().GetProperties();
foreach (PropertyInfo item in propertyInfos)
{
_ht.Add(item.Name, item.GetValue(dto, null));
}
return _ht;
}