コード例 #1
0
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>New instance of <see cref="RowData"/> with the same values.</returns>
        public RowData Clone()
        {
            var result = new RowData(this.Parent);

            for (int i = 0; i < result.data.Length; ++i)
            {
                result.data[i] = this.data[i];
            }

            return(result);
        }
コード例 #2
0
ファイル: RowData.cs プロジェクト: AlineGuan/odata.net
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>New instance of <see cref="RowData"/> with the same values.</returns>
        public RowData Clone()
        {
            var result = new RowData(this.Parent);
            for (int i = 0; i < result.data.Length; ++i)
            {
                result.data[i] = this.data[i];
            }

            return result;
        }