Esempio n. 1
0
 public DataContext(params DataConstantValue[] array)
     : base(false)
 {
     if (array != null && array.Length != 0)
     {
         Initialize(array.Length);
         for (int i = 0; i < array.Length; i++)
         {
             DataConstantValue value = array[i];
             if (!value.IsEmpty)
             {
                 Add(value.DataConstant, value.Value);
             }
         }
     }
     else
     {
         Initialize(0);
     }
 }
Esempio n. 2
0
 public IList <DataConstantValue> ToList()
 {
     return(this.Select(pair => DataConstantValue.Create(pair.Key, pair.Value)).ToList());
 }