Ejemplo n.º 1
0
        public BootstrapActionDetail Unmarshall(UnmarshallerContext context)
        {
            BootstrapActionDetail bootstrapActionDetail = new BootstrapActionDetail();
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("BootstrapActionConfig", targetDepth))
                    {
                        bootstrapActionDetail.BootstrapActionConfig = BootstrapActionConfigUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return(bootstrapActionDetail);
                }
            }

            return(bootstrapActionDetail);
        }
        public static BootstrapActionConfigUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new BootstrapActionConfigUnmarshaller();
            }

            return(instance);
        }