Ejemplo n.º 1
0
 public override void set(int index, IScalar value)
 {
     if (value.getDataType() == DATA_TYPE.DT_STRING)
     {
         values[index] = @base.find(value.getString(), true);
     }
     else
     {
         throw new Exception("The value must be a string scalar. ");
     }
 }
Ejemplo n.º 2
0
 public BasicSymbolVector(IList <string> list) : base(DATA_FORM.DF_VECTOR)
 {
     @base  = new SymbolBase(0);
     values = new List <int>(new int[list.Count]);
     for (int i = 0; i < list.Count; ++i)
     {
         values[i] = @base.find(list[i], true);
     }
 }