ObjectExtensionsCopy Method (Object, Object) |
Creates a deep copy of the object using the supplied object as a target for the copy operation.
Namespace: StreamCoders.HelpersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static Object Copy(
this Object instance,
Object copy
)
<ExtensionAttribute>
Public Shared Function Copy (
instance As Object,
copy As Object
) As Object
public:
[ExtensionAttribute]
static Object^ Copy(
Object^ instance,
Object^ copy
)
[<ExtensionAttribute>]
static member Copy :
instance : Object *
copy : Object -> Object
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:
ObjectA 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