示例#1
0
 public void Add(pAdoptType a) // obsolete in 4.1
 {
     //       adoptions.Add(a);
 }
示例#2
0
        public override pAdoptType pGetAdoptType()
        {
            pAdoptType returnValue;
            string child = "Unknown unit";

            try
            {
                reader.Read();

                child = pGetString();
                returnValue = new pAdoptType(child);
                if ("Location" == reader.Name)
                {
                    returnValue.Location = pGetLocation();
                    if ("InitialState" == reader.Name)
                    {

                        returnValue.InitialState = pGetString();
                    }
                    if ("InitialParameters" == reader.Name)
                    {
                        returnValue.Add(pGetParameters());
                    }
                }
                reader.ReadEndElement();
                return returnValue;

            }


            catch (SystemException e)
            {
                throw new ApplicationException("Error in Adopt statement with  child = " + child, e);
            }
        }