public static SubnetUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new SubnetUnmarshaller();
            }

            return(instance);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeSubnetsResponse response = new DescribeSubnetsResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("subnetSet/item", targetDepth))
                    {
                        response.Subnets.Add(SubnetUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }