Returns information about the CreateInternetGateway response and response metadata.
Наследование: CreateInternetGatewayResult
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CreateInternetGatewayResponse response = new CreateInternetGatewayResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            if (context.IsStartOfDocument) 
               targetDepth = 2;

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {

                    if (context.TestExpression("internetGateway", targetDepth))
                    {
                        var unmarshaller = InternetGatewayUnmarshaller.Instance;
                        response.InternetGateway = unmarshaller.Unmarshall(context);
                        continue;
                    }
                } 
            }

            return response;
        }
 public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) 
 {   
     CreateInternetGatewayResponse response = new CreateInternetGatewayResponse();
     
     int targetDepth = 2;
     while (context.Read())
     {
         if (context.IsStartElement || context.IsAttribute)
         {
             
             if (context.TestExpression("internetGateway", targetDepth))
             {
                 response.InternetGateway = InternetGatewayUnmarshaller.GetInstance().Unmarshall(context);
                     
                 continue;
             }
         }
     }
          
                 
     return response;
 }