public Restrictions Unmarshall(XmlUnmarshallerContext context)
        {
            Restrictions restrictions  = new Restrictions();
            int          originalDepth = context.CurrentDepth;
            int          targetDepth   = originalDepth + 1;

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

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("GeoRestriction", targetDepth))
                    {
                        restrictions.GeoRestriction = GeoRestrictionUnmarshaller.GetInstance().Unmarshall(context);

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



            return(restrictions);
        }
        public static GeoRestrictionUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new GeoRestrictionUnmarshaller();
            }

            return(instance);
        }