ObjectExtensionsCopy Method (Object) |
Creates a copy of the object.
Namespace: StreamCoders.HelpersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static Object Copy(
this Object instance
)
<ExtensionAttribute>
Public Shared Function Copy (
instance As Object
) As Object
public:
[ExtensionAttribute]
static Object^ Copy(
Object^ instance
)
[<ExtensionAttribute>]
static member Copy :
instance : Object -> Object
Parameters
- instance
- Type: SystemObject
The object to be copied.
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