XML attribute value remains null after deserialization

I have the following XML:

...
                        <Game minPoints="5">
                           <GameElement>
                              <Text>Ball Text</Text>
                           </GameElement>
                           <GameElement>
                              <Text>Cicle Text</Text>
                           </GameElement>
                        </Game>
...

And the following class structure:

       public class ... {
	[XmlArray("Game")]
	[XmlArrayItem("GameElement")]
		public GameList gameElements = new GameList();
	}

	public class GameList : List<GameElement> {
		[XmlAttribute]
		public string minPoints;
	}

	public class GameElement
	{
		public string Text;
        }

When I deserialize the XML, gameElements.minPoints always remains null.
Ideas anyone how to solve this?

Thank you in advance!

Give this a shot:

// other usings
using System.Xml.Serialization;

[XmlRoot]
public class Game
{
	[XmlAttribute]
	public minPoints { get; set; }
	
	[XmlElement]
	public List<GameElement> GameElements { get; set; }
}

public class GameElement
{
	[XmlElement]
	public string Text { get; set; }
}