Method CopyFields
CopyFields(object, object, BindingFlags)
Copy the fields from one object to another
Declaration
public static void CopyFields(object src, object dst, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)
Parameters
| Type | Name | Description |
|---|---|---|
| object | src | The source object to copy from |
| object | dst | The destination object to copy to |
| BindingFlags | bindingAttr | The mask to filter the attributes. Only those fields that get caught in the filter will be copied |