arm 嵌入式,刘真走光,北京吸脂手术价格
1 public static T Mapper<S, T>(S source) 2 { 3 T t = Activator.CreateInstance<T>(); 4 try 5 { 6 var s_type = source.GetType(); 7 var t_type = typeof(T); 8 foreach (PropertyInfo sp in s_type.GetProperties()) 9 { 10 foreach (PropertyInfo dp in t_type.GetProperties()) 11 { 12 if (dp.Name.ToUpper() == sp.Name.ToUpper()) 13 { 14 dp.SetValue(t, sp.GetValue(source, null), null); 15 } 16 } 17 } 18 } 19 catch (Exception ex) 20 { 21 throw ex; 22 } 23 return t; 24 }
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Blazor server side 自家的一些开源的, 实用型项目的进度之 CEF客户端
.NET IoC模式依赖反转(DIP)、控制反转(Ioc)、依赖注入(DI)
vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
网友评论