Creates a shallow copy of the delegate.
[Visual Basic] Public Overridable Function Clone() As Object Implements _ ICloneable.Clone [C#] public virtual object Clone(); [C++] public: virtual Object* Clone(); [JScript] public function Clone() : Object;
A shallow copy of the delegate.
The clone has the same Type, target, method, and invocation list as the original delegate.
A shallow copy creates a new instance of the same type as the original object, and then copies the nonstatic fields of the original object. If the field is a value type, a bit-by-bit copy of the field is performed. If the field is a reference type, the reference is copied but the referred object is not; therefore, the reference in the original object and the reference in the clone point to the same object. In contrast, a deep copy of an object duplicates everything directly or indirectly referenced by the fields in the object.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard
.NET Framework Security:
- ReflectionPermission when invoked late-bound through mechanisms such as Type.InvokeMember. Associated enumeration: ReflectionPermissionFlag.MemberAccess