示例#1
0
        public ExceptionInfo Clone()
        {
            var cloned = new ExceptionInfo
            {
                _helpLink       = _helpLink,
                _hResult        = _hResult,
                _innerException = (_innerException == null ? null : _innerException.Clone()),
                _message        = _message,
                _properties     = CopyDictionary(_properties),
                _source         = _source,
                _stackTrace     = _stackTrace,
                _targetSite     = _targetSite,
                _type           = (_type == null ? null : _type.Clone())
            };

            return(cloned);
        }