public TypeCheckResponse TypeCheck(TypeCheckRequest req)
 {
     TypeCheckResponse resp = new TypeCheckResponse();
     resp.BoolCheck = req.BoolCheck;
     resp.DecimalCheck = req.DecimalCheck;
     resp.FloatCheck = req.FloatCheck;
     resp.UriListCheck = new String[req.UriListCheck.Length];
     for (int i = 0; i < req.UriListCheck.Length; ++i)
     {
         resp.UriListCheck[i] = req.UriListCheck[i];   
     }
     return resp;
 }
        public TypeCheckResponse TypeCheck(TypeCheckRequest req)
        {
            TypeCheckResponse resp = new TypeCheckResponse();

            resp.BoolCheck    = req.BoolCheck;
            resp.DecimalCheck = req.DecimalCheck;
            resp.FloatCheck   = req.FloatCheck;
            resp.UriListCheck = new String[req.UriListCheck.Length];
            for (int i = 0; i < req.UriListCheck.Length; ++i)
            {
                resp.UriListCheck[i] = req.UriListCheck[i];
            }
            return(resp);
        }
        public override object ReadObject(XmlReader reader)
        {
            TypeCheckResponse TypeCheckResponseField = null;

            if (IsParentStartElement(reader, false, true))
            {
                TypeCheckResponseField         = new TypeCheckResponse();
                TypeCheckResponseField.AnyAttr = ReadAnyAttribute(reader);
                reader.Read();
                if (IsChildStartElement(reader, "BoolCheck", false, true))
                {
                    reader.Read();
                    TypeCheckResponseField.BoolCheck = XmlConvert.ToBoolean(reader.ReadString());
                    reader.ReadEndElement();
                }
                if (IsChildStartElement(reader, "DecimalCheck", false, true))
                {
                    reader.Read();
                    TypeCheckResponseField.DecimalCheck = reader.ReadString();
                    reader.ReadEndElement();
                }
                if (IsChildStartElement(reader, "FloatCheck", false, true))
                {
                    reader.Read();
                    TypeCheckResponseField.FloatCheck = XmlConvert.ToSingle(reader.ReadString());
                    reader.ReadEndElement();
                }
                if (IsChildStartElement(reader, "UriListCheck", false, true))
                {
                    reader.Read();
                    string[] tempList = reader.ReadString().Split();
                    TypeCheckResponseField.UriListCheck = new string[tempList.Length];
                    int i;
                    for (i = 0; (i < tempList.Length); i = (i + 1))
                    {
                        TypeCheckResponseField.UriListCheck[i] = tempList[i];
                    }
                    reader.ReadEndElement();
                }
                TypeCheckResponseField.Any = ReadAnyElement(reader, false);
                reader.ReadEndElement();
            }
            return(TypeCheckResponseField);
        }
        public override void WriteObject(XmlWriter writer, object graph)
        {
            TypeCheckResponse TypeCheckResponseField = ((TypeCheckResponse)(graph));

            if (WriteParentElement(writer, true, true, graph))
            {
                WriteAnyAttribute(writer, TypeCheckResponseField.AnyAttr);
                if (WriteChildElement(writer, "BoolCheck", false, true, TypeCheckResponseField.BoolCheck))
                {
                    writer.WriteString(XmlConvert.ToString(TypeCheckResponseField.BoolCheck));
                    writer.WriteEndElement();
                }
                if (WriteChildElement(writer, "DecimalCheck", false, true, TypeCheckResponseField.DecimalCheck))
                {
                    writer.WriteString(TypeCheckResponseField.DecimalCheck);
                    writer.WriteEndElement();
                }
                if (WriteChildElement(writer, "FloatCheck", false, true, TypeCheckResponseField.FloatCheck))
                {
                    writer.WriteString(XmlConvert.ToString(TypeCheckResponseField.FloatCheck));
                    writer.WriteEndElement();
                }
                if (WriteChildElement(writer, "UriListCheck", false, true, TypeCheckResponseField.UriListCheck))
                {
                    string tempList = "";
                    int    i;
                    for (i = 0; (i < TypeCheckResponseField.UriListCheck.Length); i = (i + 1))
                    {
                        tempList = (tempList + TypeCheckResponseField.UriListCheck[i]);
                        if ((i
                             < (TypeCheckResponseField.UriListCheck.Length - 1)))
                        {
                            tempList = (tempList + " ");
                        }
                    }
                    writer.WriteString(tempList);
                    writer.WriteEndElement();
                }
                WriteAnyElement(writer, TypeCheckResponseField.Any, false);
                writer.WriteEndElement();
            }
            return;
        }
 public override object ReadObject(XmlReader reader)
 {
     TypeCheckResponse TypeCheckResponseField = null;
     if (IsParentStartElement(reader, false, true))
     {
         TypeCheckResponseField = new TypeCheckResponse();
         TypeCheckResponseField.AnyAttr = ReadAnyAttribute(reader);
         reader.Read();
         if (IsChildStartElement(reader, "BoolCheck", false, true))
         {
             reader.Read();
             TypeCheckResponseField.BoolCheck = XmlConvert.ToBoolean(reader.ReadString());
             reader.ReadEndElement();
         }
         if (IsChildStartElement(reader, "DecimalCheck", false, true))
         {
             reader.Read();
             TypeCheckResponseField.DecimalCheck = reader.ReadString();
             reader.ReadEndElement();
         }
         if (IsChildStartElement(reader, "FloatCheck", false, true))
         {
             reader.Read();
             TypeCheckResponseField.FloatCheck = XmlConvert.ToSingle(reader.ReadString());
             reader.ReadEndElement();
         }
         if (IsChildStartElement(reader, "UriListCheck", false, true))
         {
             reader.Read();
             string[] tempList = reader.ReadString().Split();
             TypeCheckResponseField.UriListCheck = new string[tempList.Length];
             int i;
             for (i = 0; (i < tempList.Length); i = (i + 1))
             {
                 TypeCheckResponseField.UriListCheck[i] = tempList[i];
             }
             reader.ReadEndElement();
         }
         TypeCheckResponseField.Any = ReadAnyElement(reader, false);
         reader.ReadEndElement();
     }
     return TypeCheckResponseField;
 }