Inheritance: AbstractTaggedArrayTO
 public TaggedProblemArrays(IndexedHashtable t)
 {
     if (t.Count == 0)
     {
         return;
     }
     arrays = new TaggedProblemArray[t.Count];
     for (int i = 0; i < t.Count; i++)
     {
         if (t.GetValue(i) == null)
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i));
         }
         else if (MdwsUtils.isException(t.GetValue(i)))
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i), (Exception)t.GetValue(i));
         }
         else if (t.GetValue(i).GetType().IsArray)
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i), (Problem[])t.GetValue(i));
         }
         else
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i), (Problem)t.GetValue(i));
         }
     }
     count = t.Count;
 }
Exemple #2
0
 public TaggedProblemArrays(IndexedHashtable t)
 {
     if (t.Count == 0)
     {
         return;
     }
     arrays = new TaggedProblemArray[t.Count];
     for (int i = 0; i < t.Count; i++)
     {
         if (t.GetValue(i) == null)
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i));
         }
         else if (MdwsUtils.isException(t.GetValue(i)))
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i), (Exception)t.GetValue(i));
         }
         else if (t.GetValue(i).GetType().IsArray)
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i), (Problem[])t.GetValue(i));
         }
         else
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i), (Problem)t.GetValue(i));
         }
     }
     count = t.Count;
 }
Exemple #3
0
 public TaggedProblemArrays(IndexedHashtable t)
 {
     if (t.Count == 0)
     {
         return;
     }
     arrays = new TaggedProblemArray[t.Count];
     for (int i = 0; i < t.Count; i++)
     {
         if (t.GetValue(i) == null)
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i));
         }
         else if (MdwsUtils.isException(t.GetValue(i)))
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i), (Exception)t.GetValue(i));
         }
         else if (t.GetValue(i).GetType() == typeof(System.Collections.Hashtable))
         {
             IList <Problem> temp = ((System.Collections.Hashtable)t.GetValue(i))["problems"] as IList <Problem>;
             if (temp == null || temp.Count == 0)
             {
                 arrays[i] = new TaggedProblemArray((string)t.GetKey(i));
             }
             else
             {
                 Problem[] ary = new Problem[temp.Count];
                 temp.CopyTo(ary, 0);
                 arrays[i] = new TaggedProblemArray((string)t.GetKey(i), ary);
             }
         }
         else if (t.GetValue(i).GetType().IsArray)
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i), (Problem[])t.GetValue(i));
         }
         else
         {
             arrays[i] = new TaggedProblemArray((string)t.GetKey(i), (Problem)t.GetValue(i));
         }
     }
     count = t.Count;
 }