DataDebugMethods.InputSample.AddArray C# (CSharp) Method

AddArray() public method

public AddArray ( object data ) : void
data object
return void
        public void AddArray(object[,] data)
        {
            if (_i != 0)
            {
                throw new Exception("You must use EITHER Add or AddArray, but not both.");
            }
            _input_array = data;
        }

Usage Example

Exemplo n.º 1
0
        private static Dictionary <AST.Range, InputSample> StoreInputs(AST.Range[] inputs, DAG dag)
        {
            var d = new Dictionary <AST.Range, InputSample>();

            foreach (AST.Range input_range in inputs)
            {
                var com = dag.getCOMRefForRange(input_range);
                var s   = new InputSample(com.Height, com.Width);

                // store the entire COM array as a multiarray
                // in one fell swoop.
                s.AddArray(com.Range.Value2);

                // add stored input to dict
                d.Add(input_range, s);

                // this is to force excel to recalculate its outputs
                // exactly the same way that it will for our bootstraps
                BootMemo.ReplaceExcelRange(com.Range, s);
            }

            return(d);
        }
All Usage Examples Of DataDebugMethods.InputSample::AddArray