当构造方法被私有化
Setting copy =
(Setting)FormatterServices.GetUninitializedObject(dbSetting.GetType());
常规手法
var copy = Activator.CreateInstance(typeof(Setting)) ;
Type type = typeof(Setting);
type.GetProperty("Name").SetValue(copy, sourceSetting.Name);