public ApplicationVersionDescription Unmarshall(XmlUnmarshallerContext context) { ApplicationVersionDescription applicationVersionDescription = new ApplicationVersionDescription(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ApplicationName", targetDepth)) { applicationVersionDescription.ApplicationName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { applicationVersionDescription.Description = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VersionLabel", targetDepth)) { applicationVersionDescription.VersionLabel = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SourceBundle", targetDepth)) { applicationVersionDescription.SourceBundle = S3LocationUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DateCreated", targetDepth)) { applicationVersionDescription.DateCreated = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DateUpdated", targetDepth)) { applicationVersionDescription.DateUpdated = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(applicationVersionDescription); } } return(applicationVersionDescription); }