public static CharacterSetUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new CharacterSetUnmarshaller();
            }

            return(instance);
        }
        public DBEngineVersion Unmarshall(XmlUnmarshallerContext context)
        {
            DBEngineVersion dBEngineVersion = new DBEngineVersion();
            int             originalDepth   = context.CurrentDepth;
            int             targetDepth     = originalDepth + 1;

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

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Engine", targetDepth))
                    {
                        dBEngineVersion.Engine = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                    if (context.TestExpression("EngineVersion", targetDepth))
                    {
                        dBEngineVersion.EngineVersion = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                    if (context.TestExpression("DBParameterGroupFamily", targetDepth))
                    {
                        dBEngineVersion.DBParameterGroupFamily = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                    if (context.TestExpression("DBEngineDescription", targetDepth))
                    {
                        dBEngineVersion.DBEngineDescription = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                    if (context.TestExpression("DBEngineVersionDescription", targetDepth))
                    {
                        dBEngineVersion.DBEngineVersionDescription = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                    if (context.TestExpression("DefaultCharacterSet", targetDepth))
                    {
                        dBEngineVersion.DefaultCharacterSet = CharacterSetUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                    if (context.TestExpression("SupportedCharacterSets/CharacterSet", targetDepth))
                    {
                        dBEngineVersion.SupportedCharacterSets.Add(CharacterSetUnmarshaller.GetInstance().Unmarshall(context));

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



            return(dBEngineVersion);
        }