DataUtils.CopyObjectData

Copies the data of one object to another. The target object 'pulls' properties of the first. This any matching properties are written to the target.

The object copy is a shallow copy only. Any nested types will be copied as whole values rather than individual property assignments (ie. via assignment)

public static void CopyObjectData(object source,
	object target,
	string excludedProperties,
	BindingFlags memberAccess)

Parameters

source
The source object to copy from

target
The object to copy to

excludedProperties
A comma delimited list of properties that should not be copied

memberAccess
Reflection binding access

Overloads:


See also:

Class DataUtils

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic