singrdk/base/Applications/Runtime/Full/System/ICloneable.cs

33 lines
1.1 KiB
C#
Raw Normal View History

2008-03-05 09:52:00 -05:00
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
2008-11-17 18:29:00 -05:00
//============================================================
//
// Class: ICloneable
//
// This interface is implemented by classes that support cloning.
//
//===========================================================
namespace System
{
2008-03-05 09:52:00 -05:00
using System;
// Defines an interface indicating that an object may be cloned. Only objects
// that implement ICloneable may be cloned. The interface defines a single
// method which is called to create a clone of the object. Object defines a method
// MemberwiseClone to support default clone operations.
//
//| <include path='docs/doc[@for="ICloneable"]/*' />
public interface ICloneable
{
//| <include path='docs/doc[@for="ICloneable.Clone"]/*' />
// Make a new object which is a copy of the object instanced. This object may be either
// deep copy or a shallow copy depending on the implementation of clone. The default
// Object support for clone does a shallow copy.
//
Object Clone();
}
}