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