public static KeyPairInfoUnmarshaller GetInstance() { if (instance == null) { instance = new KeyPairInfoUnmarshaller(); } return(instance); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeKeyPairsResponse response = new DescribeKeyPairsResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("keySet/item", targetDepth)) { response.KeyPairs.Add(KeyPairInfoUnmarshaller.GetInstance().Unmarshall(context)); continue; } } } return(response); }