Esempio n. 1
0
 public void PutRecord(ICdlRecord record)
 {
     object[] values = new object[record.FieldCount];
     record.GetValues(values);
     ICdlRecord copy = new ArrayDataRecord(Format, values);
     m_queue.Put(new Element { Record = copy });
 }
Esempio n. 2
0
        public void PutRecord(ICdlRecord record)
        {
            object[] values = new object[record.FieldCount];
            record.GetValues(values);
            ICdlRecord copy = new ArrayDataRecord(Format, values);

            m_queue.Put(new Element {
                Record = copy
            });
        }
Esempio n. 3
0
        public int GetValues(object[] values)
        {
            int cnt = Math.Min(values.Length, m_fields.Length);

            if (m_original != null)
            {
                m_original.GetValues(values);
            }
            for (int i = 0; i < cnt; i++)
            {
                if (m_fields[i].Changed)
                {
                    values[i] = m_fields[i].Value;
                }
            }
            return(cnt);
        }
Esempio n. 4
0
 public ArrayDataRecord(ICdlRecord record)
 {
     _values = new object[record.FieldCount];
     _structure = record.Structure;
     record.GetValues(_values);
 }
Esempio n. 5
0
 public ArrayDataRecord(ICdlRecord record)
 {
     _values    = new object[record.FieldCount];
     _structure = record.Structure;
     record.GetValues(_values);
 }
Esempio n. 6
0
 public int GetValues(object[] values)
 {
     return(RefObject.GetValues(values));
 }
Esempio n. 7
0
 public static object[] GetValues(this ICdlRecord record)
 {
     object[] values = new object[record.FieldCount];
     record.GetValues(values);
     return(values);
 }