ReflectionHelpers.CopyFields Method

Cinemachine

ReflectionHelpersCopyFields Method

Copy the fields from one object to another

Namespace:  Cinemachine.Utility
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static void CopyFields(
	Object src,
	Object dst,
	BindingFlags bindingAttr = BindingFlags.Default|BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic
)
Cinemachine.Utility.ReflectionHelpers.CopyFields = function(src, dst, bindingAttr);

Parameters

src
Type: SystemObject
The source object to copy from
dst
Type: SystemObject
The destination object to copy to
bindingAttr (Optional)
Type: System.ReflectionBindingFlags
The mask to filter the attributes. Only those fields that get caught in the filter will be copied
See Also