Пример #1
0
        public CsvRow Clone()
        {
            CsvRow csvRow = new CsvRow(this);

            for (int i = 0; i < csvRow.Length; i++)
            {
                csvRow[i] = new CsvValue(this[i]);
            }
            return(csvRow);
        }
Пример #2
0
        public CsvColumn Clone()
        {
            CsvColumn csvColumn = new CsvColumn(this._key, this._raw.Count);

            for (int i = 0; i < csvColumn.Length; i++)
            {
                csvColumn[i] = new CsvValue(csvColumn[i]);
            }
            return(csvColumn);
        }
Пример #3
0
 public void CopyTo(Csv csv)
 {
     this.Initialize(csv.RowLength, csv.GetKeyList());
     for (int i = 0; i < csv.RowLength; i++)
     {
         for (int j = 0; j < csv.ColumnLength; j++)
         {
             this[j, i] = new CsvValue(csv[j, i]);
         }
     }
 }
Пример #4
0
 public Csv(Csv csv)
 {
     this.Initialize(csv.RowLength, csv.GetKeyList());
     for (int i = 0; i < this.ColumnLength; i++)
     {
         for (int j = 0; j < this.RowLength; j++)
         {
             this[i, j] = new CsvValue(csv[i, j]);
         }
     }
 }
Пример #5
0
 public void Insert(int index, CsvValue value)
 {
     this._raw.Insert(index, value);
 }
Пример #6
0
 public void Add(CsvValue value)
 {
     this._raw.Add(value);
 }
Пример #7
0
 public CsvValue(CsvValue csvValue)
 {
     this._value = csvValue._value;
 }
Пример #8
0
 public bool Equals(CsvValue obj)
 {
     return(obj._value.Trim().Equals(this._value.Trim()));
 }