Наследование: AbstractTaggedArrayTO
Пример #1
0
 public TaggedObservationArrays(IndexedHashtable t)
 {
     if (t.Count == 0)
     {
         return;
     }
     arrays = new TaggedObservationArray[t.Count];
     for (int i = 0; i < t.Count; i++)
     {
         if (t.GetValue(i) == null)
         {
             arrays[i] = new TaggedObservationArray((string)t.GetKey(i));
         }
         else if (MdwsUtils.isException(t.GetValue(i)))
         {
             arrays[i]       = new TaggedObservationArray();
             arrays[i].fault = new FaultTO((Exception)t.GetValue(i));
         }
         else if (t.GetValue(i).GetType().IsArray)
         {
             arrays[i] = new TaggedObservationArray((string)t.GetKey(i), (LabObservation[])t.GetValue(i));
         }
         else
         {
             arrays[i] = new TaggedObservationArray((string)t.GetKey(i), (LabObservation)t.GetValue(i));
         }
     }
     count = t.Count;
 }
Пример #2
0
 public TaggedObservationArrays(IndexedHashtable t)
 {
     if (t.Count == 0)
     {
         return;
     }
     arrays = new TaggedObservationArray[t.Count];
     for (int i = 0; i < t.Count; i++)
     {
         if (t.GetValue(i) == null)
         {
             arrays[i] = new TaggedObservationArray((string)t.GetKey(i));
         }
         else if (MdwsUtils.isException(t.GetValue(i)))
         {
             arrays[i] = new TaggedObservationArray();
             arrays[i].fault = new FaultTO((Exception)t.GetValue(i));
         }
         else if (t.GetValue(i).GetType().IsArray)
         {
             arrays[i] = new TaggedObservationArray((string)t.GetKey(i), (LabObservation[])t.GetValue(i));
         }
         else
         {
             arrays[i] = new TaggedObservationArray((string)t.GetKey(i), (LabObservation)t.GetValue(i));
         }
     }
     count = t.Count;
 }