public static ImageAttributeUnmarshaller GetInstance() { if (instance == null) { instance = new ImageAttributeUnmarshaller(); } return(instance); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeImageAttributeResponse response = new DescribeImageAttributeResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression(".", targetDepth)) { response.ImageAttribute = ImageAttributeUnmarshaller.GetInstance().Unmarshall(context); continue; } } } return(response); }