示例#1
0
        public object Clone()
        {
            Cell cell = new Cell();

            if (_valueMap != null)
            {
                cell.setValuesMap((ShortMap)_valueMap.Clone());
            }
            if (_expMap != null)
            {
                cell.setExpressionsMap((ShortMap)_expMap.Clone());
            }
            return(cell);
        }
示例#2
0
文件: CellSet1.cs 项目: ikvm/test
        private Cell method_5(int int_0, int int_1)
        {
            Cell cell = (Cell)matrix[int_0, int_1];

            if (cell == null)
            {
                cell = new Cell();
                cell.setExpressionsMap(new ShortMap(15));
                cell.setValuesMap(new ShortMap(15));
                //this.cellMatrix_0[int_0, int_1, cell];
                matrix[int_0, int_1] = cell;
            }
            return(cell);
        }