internal DataValueInstance DeepClone()
        {
            DataValueInstance dataValueInstance = new DataValueInstance();

            if (m_name != null)
            {
                dataValueInstance.Name = string.Copy(m_name);
            }
            if (m_value != null)
            {
                CustomReportItem.CloneObject(m_value, out object clone);
                dataValueInstance.Value = clone;
            }
            return(dataValueInstance);
        }
Beispiel #2
0
        public DataValueInstance DeepClone()
        {
            DataValueInstance dataValueInstance = new DataValueInstance();

            if (this.m_name != null)
            {
                dataValueInstance.Name = string.Copy(this.m_name);
            }
            if (this.m_value != null)
            {
                object value = default(object);
                CustomReportItem.CloneObject(this.m_value, out value);
                dataValueInstance.Value = value;
            }
            return(dataValueInstance);
        }