hi

im trying to save a class with initial sizes

Code:
    Public Sub SaveMap(ByVal aMap As map, ByVal fileName As String)

        Dim ser As New XmlSerializer(GetType(map))
        Dim fs As New FileStream(fileName, FileMode.Create)

        ser.Serialize(fs, aMap)

        fs.Close()
        fs.Dispose()

    End Sub
Code:
Public Class map

    Public X As Integer = 10
    Public Y As Integer = 10
    'Public Tile(5, 10, 10) As TileRec

    Public test(5, 5) As Integer

    Public Structure TileRec

        Public X As Integer
        Public Y As Integer
        Public Tileset As Integer

    End Structure

End Class
actually it won't save the 'test(5,5) as integer'. if i change 'test(5,5) as integer' to test(5) it will save the map well. why wont it save the 'test(5,5)' ?