Amazon.ElasticBeanstalk.Model.Internal.MarshallTransformations.DescribeConfigurationOptionsResponseUnmarshaller.UnmarshallResult C# (CSharp) Method

UnmarshallResult() private static method

private static UnmarshallResult ( Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext context, DescribeConfigurationOptionsResponse response ) : void
context Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext
response Amazon.ElasticBeanstalk.Model.DescribeConfigurationOptionsResponse
return void
        private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeConfigurationOptionsResponse response)
        {
            
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            
            if (context.IsStartOfDocument) 
               targetDepth += 2;
            
            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {

                    if (context.TestExpression("Options/member", targetDepth))
                    {
                        var unmarshaller = ConfigurationOptionDescriptionUnmarshaller.Instance;
                        var item = unmarshaller.Unmarshall(context);
                        response.Options.Add(item);
                        continue;
                    }
                    if (context.TestExpression("SolutionStackName", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.SolutionStackName = unmarshaller.Unmarshall(context);
                        continue;
                    }
                } 
           }

            return;
        }
DescribeConfigurationOptionsResponseUnmarshaller