110,533
社区成员
发帖
与我相关
我的任务
分享
public void Obj_DeBase64<T>(T Tmpobj)
{
Type type;
try
{
type = Tmpobj.GetType();
System.Reflection.PropertyInfo[] api = type.GetProperties();
foreach (PropertyInfo pi in api)
{
try
{
if (pi.PropertyType == Type.GetType("System.String"))
{
pi.SetValue(Tmpobj, DeBase64(pi.GetValue(Tmpobj, null).ToString()), null);
}
}
catch
{
}
}
}
catch
{
}
finally
{
type = null;
}
}