Litle.Sdk.batchResponse.nextCreditResponse C# (CSharp) Method

nextCreditResponse() public method

public nextCreditResponse ( ) : creditResponse
return creditResponse
        public virtual creditResponse nextCreditResponse()
        {
            if (creditResponseReader.ReadState != ReadState.Closed)
            {
                string response = creditResponseReader.ReadOuterXml();
                XmlSerializer serializer = new XmlSerializer(typeof(creditResponse));
                StringReader reader = new StringReader(response);
                creditResponse i = (creditResponse)serializer.Deserialize(reader);

                if (!creditResponseReader.ReadToFollowing("creditResponse"))
                {
                    creditResponseReader.Close();
                }

                return i;
            }

            return null;
        }
batchResponse