日期:2014-05-17  浏览次数:20685 次

object 类中的函数:protected object MemberwiseClone(),作用是什么呀,我找不到实现的代码呀?
object 类中的函数:protected object MemberwiseClone(),作用是什么呀,我找不到实现的代码呀?
以下是vs2008中自带的源码,object 中有 MemberwiseClone() 方法,但是我不知道功能是什么,为何没有实现的代码呢?
如何能看到实现的代码呢?


using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;

namespace System
{
    // 摘要:
    //     Supports all classes in the .NET Framework class hierarchy and provides low-level
    //     services to derived classes. This is the ultimate base class of all classes
    //     in the .NET Framework; it is the root of the type hierarchy.
    [Serializable]
    [ComVisible(true)]
    [ClassInterface(ClassInterfaceType.AutoDual)]
    public class Object
    {
        // 摘要:
        //     Initializes a new instance of the System.Object class.
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
        public Object();

        // 摘要:
        //     Determines whether the specified System.Object is equal to the current System.Object.
        //
        // 参数:
        //   obj:
        //     The System.Object to compare with the current System.Object.
        //
        // 返回结果:
        //     true if the specified System.Object is equal to the current System.Object;
        //     otherwise, false.
        //
        // 异常:
        //   System.NullReferenceException:
        //     The obj parameter is null.
        public virtual bool Equals(object obj);
        //
        // 摘要:
        //     Determines whether the specified System.Object instances are considered equal.
        //
        // 参数:
        //   objA:
        //     The firs