Method CopyFields
CopyFields(object, object, BindingFlags)
Copy the fields from one object to another
선언
public static void CopyFields(object src, object dst, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)
파라미터
타입 | 이름 | 설명 |
---|---|---|
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 |