Esempio n. 1
0
        public void TestExpressionTree()
        {
            // Could store compiled expression tree for reuse, possibly in cached dictionary with key being type.
            var dlg  = CloneUtility.CreateCloneDelegate(typeof(BasicDto));
            var dto1 = CreateBasicDto();
            var dto2 = dlg(dto1);

            IsValidClone(dto1, dto2);
        }