示例#1
0
 public static void TransferValuesTo(this object source, object target, params string[] including)
 {
     ReflectUtil.SetSameClassValue(source, target, variants: including, listisdisallow: false);
 }
示例#2
0
 public static void TransferTo(this object source, object target, string[] excludingorincluding = null, bool listisexcluding = true, bool crossNullvalue = true)
 {
     ReflectUtil.SetSameClassValue(source, target, variants: excludingorincluding, listisdisallow: listisexcluding, crossnullvalue: crossNullvalue);
 }