Exemplo n.º 1
0
        public void SetColumn(string name, object value)
        {
            int index = Array.IndexOf(_columnnames, name);

            FlowError.Assert(index != -1, "unknown column");
            _columnvalues[index] = value;
        }
Exemplo n.º 2
0
 public Record(string name, string[] columnnames, object[] columnvalues)
 {
     FlowError.AssertNotNull(name, "name");
     FlowError.AssertNotNull(columnnames, "column names");
     FlowError.AssertNotNull(columnvalues, "column values");
     FlowError.Assert(columnvalues.Length == columnnames.Length, "column names and values different length");
     _name         = name;
     _columnnames  = columnnames;
     _columnvalues = columnvalues;
 }