gov.va.medora.mdws.dto.TaggedMedicationArrays.TaggedMedicationArrays C# (CSharp) Method

TaggedMedicationArrays() public method

public TaggedMedicationArrays ( IndexedHashtable t ) : System
t gov.va.medora.mdo.IndexedHashtable
return System
        public TaggedMedicationArrays(IndexedHashtable t)
        {
            if (t.Count == 0)
            {
                return;
            }
            arrays = new TaggedMedicationArray[t.Count];
            for (int i = 0; i < t.Count; i++)
            {
                if (t.GetValue(i) == null)
                {
                    arrays[i] = new TaggedMedicationArray((string)t.GetKey(i));
                }
                else if (MdwsUtils.isException(t.GetValue(i)))
                {
                    arrays[i] = new TaggedMedicationArray((string)t.GetKey(i), (Exception)t.GetValue(i));
                }
                else if (t.GetValue(i).GetType().IsArray)
                {
                    arrays[i] = new TaggedMedicationArray((string)t.GetKey(i), (Medication[])t.GetValue(i));
                }
                else
                {
                    arrays[i] = new TaggedMedicationArray((string)t.GetKey(i), (Medication)t.GetValue(i));
                }
            }
            count = t.Count;
        }

Same methods

TaggedMedicationArrays::TaggedMedicationArrays ( ) : System
TaggedMedicationArrays