Click or drag to resize
ObjectExtensionsCopy Method (Object, Object)
Creates a deep copy of the object using the supplied object as a target for the copy operation.

Namespace: StreamCoders.Helpers
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public static Object Copy(
	this Object instance,
	Object copy
)

Parameters

instance
Type: SystemObject
The object to be copied.
copy
Type: SystemObject
The object to copy values to. All fields of this object will be overwritten.

Return Value

Type: Object
A deep copy of the object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also