示例#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()));
 }