Exemplo n.º 1
0
        public static unsafe object RhMemberwiseClone(object src)
        {
            object objClone;

            if (src.EEType->IsArray)
            {
                objClone = RhNewArray(new EETypePtr((IntPtr)src.EEType), Unsafe.As <Array>(src).Length);
            }
            else
            {
                objClone = RhNewObject(new EETypePtr((IntPtr)src.EEType));
            }

            InternalCalls.RhpCopyObjectContents(objClone, src);

            return(objClone);
        }