public static object Deserialize(string xml, int maxSupportedVer, CustomXmlDeserializer.ITypeConverter typeConverter)
        {
            CustomXmlDeserializer customXmlDeserializer = new CustomXmlDeserializer(typeConverter);

            customXmlDeserializer.doc.LoadXml(xml);
            string attribute = customXmlDeserializer.doc.DocumentElement.GetAttribute("version");

            if (maxSupportedVer < Convert.ToInt32(attribute))
            {
                return(null);
            }
            string attribute2 = customXmlDeserializer.doc.DocumentElement.GetAttribute("culture");

            customXmlDeserializer.cult = new CultureInfo(attribute2);
            return(customXmlDeserializer.DeserializeCore(customXmlDeserializer.doc.DocumentElement));
        }
 protected CustomXmlDeserializer(CustomXmlDeserializer.ITypeConverter typeConverter)
 {
     this.typeConverter = typeConverter;
 }