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;
}