W
WStoreyII
when ever i run this code i get an error messager saying
Object reference not set to an instance of an object.
Deck.Collection.Add(Index, Me)
but it is set to an instance in the collection property of the deck class
what am i doing wrong?
by the way this is my project for PHase 10 the card game just so that you knw what you are looking at
WStoreyII
Dim MyDeck As Deck = New Deck
#Region " Cards "
' Phases
Public Phase() As String = {"Phases", Phase1, Phase2, Phase3, Phase4, Phase5, Phase6, Phase7, Phase8, Phase9, Phase10}
Public Const Phase1 As String = " 2 sets of 3 "
Public Const Phase2 As String = " 1 set of 3 + 1 run of 4 "
Public Const Phase3 As String = " 1 set of 4 + 1 run of 4 "
Public Const Phase4 As String = " 1 run of 7 "
Public Const Phase5 As String = " 1 run of 8 "
Public Const Phase6 As String = " 1 run of 9 "
Public Const Phase7 As String = " 2 sets of 4 "
Public Const Phase8 As String = " 7 cards of one color "
Public Const Phase9 As String = " 1 set of 5 + 1 set of 2 "
Public Const Phase10 As String = " 1 set of 5 + 1 set of 3 "
'Red Cards 1 - 12
Public RCF1 As Card = New Card(MyDeck, "Red", 5, 1, "1")
Public RCF2 As Card = New Card(MyDeck, "Red", 5, 2, "2")
Public RCF3 As Card = New Card(MyDeck, "Red", 5, 3, "3")
Public RCF4 As Card = New Card(MyDeck, "Red", 5, 4, "4")
Public RCF5 As Card = New Card(MyDeck, "Red", 5, 5, "5")
Public RCF6 As Card = New Card(MyDeck, "Red", 5, 6, "6")
Public RCF7 As Card = New Card(MyDeck, "Red", 5, 7, "7")
Public RCF8 As Card = New Card(MyDeck, "Red", 5, 8, "8")
Public RCF9 As Card = New Card(MyDeck, "Red", 5, 9, "9")
Public RCF10 As Card = New Card(MyDeck, "Red", 10, 10, "10")
Public RCF11 As Card = New Card(MyDeck, "Red", 10, 11, "11")
Public RCF12 As Card = New Card(MyDeck, "Red", 10, 12, "12")
Public RCS1 As Card = New Card(MyDeck, "Red", 5, 13, "1")
Public RCS2 As Card = New Card(MyDeck, "Red", 5, 14, "2")
Public RCS3 As Card = New Card(MyDeck, "Red", 5, 15, "3")
Public RCS4 As Card = New Card(MyDeck, "Red", 5, 16, "4")
Public RCS5 As Card = New Card(MyDeck, "Red", 5, 17, "5")
Public RCS6 As Card = New Card(MyDeck, "Red", 5, 18, "6")
Public RCS7 As Card = New Card(MyDeck, "Red", 5, 19, "7")
Public RCS8 As Card = New Card(MyDeck, "Red", 5, 20, "8")
Public RCS9 As Card = New Card(MyDeck, "Red", 5, 21, "9")
Public RCS10 As Card = New Card(MyDeck, "Red", 10, 22, "10")
Public RCS11 As Card = New Card(MyDeck, "Red", 10, 23, "11")
Public RCS12 As Card = New Card(MyDeck, "Red", 10, 24, "12")
'Blue Cards 1 - 12
Public BCF1 As Card = New Card(MyDeck, "Blue", 5, 25, "1")
Public BCF2 As Card = New Card(MyDeck, "Blue", 5, 26, "2")
Public BCF3 As Card = New Card(MyDeck, "Blue", 5, 27, "3")
Public BCF4 As Card = New Card(MyDeck, "Blue", 5, 28, "4")
Public BCF5 As Card = New Card(MyDeck, "Blue", 5, 29, "5")
Public BCF6 As Card = New Card(MyDeck, "Blue", 5, 30, "6")
Public BCF7 As Card = New Card(MyDeck, "Blue", 5, 31, "7")
Public BCF8 As Card = New Card(MyDeck, "Blue", 5, 32, "8")
Public BCF9 As Card = New Card(MyDeck, "Blue", 5, 33, "9")
Public BCF10 As Card = New Card(MyDeck, "Blue", 10, 34, "10")
Public BCF11 As Card = New Card(MyDeck, "Blue", 10, 35, "11")
Public BCF12 As Card = New Card(MyDeck, "Blue", 10, 36, "12")
Public BCS1 As Card = New Card(MyDeck, "Blue", 5, 37, "1")
Public BCS2 As Card = New Card(MyDeck, "Blue", 5, 38, "2")
Public BCS3 As Card = New Card(MyDeck, "Blue", 5, 39, "3")
Public BCS4 As Card = New Card(MyDeck, "Blue", 5, 40, "4")
Public BCS5 As Card = New Card(MyDeck, "Blue", 5, 41, "5")
Public BCS6 As Card = New Card(MyDeck, "Blue", 5, 42, "6")
Public BCS7 As Card = New Card(MyDeck, "Blue", 5, 43, "7")
Public BCS8 As Card = New Card(MyDeck, "Blue", 5, 44, "8")
Public BCS9 As Card = New Card(MyDeck, "Blue", 5, 45, "9")
Public BCS10 As Card = New Card(MyDeck, "Blue", 10, 46, "10")
Public BCS11 As Card = New Card(MyDeck, "Blue", 10, 47, "11")
Public BCS12 As Card = New Card(MyDeck, "Blue", 10, 48, "12")
'Green Cards 1 - 12
Public GCF1 As Card = New Card(MyDeck, "Green", 5, 49, "1")
Public GCF2 As Card = New Card(MyDeck, "Green", 5, 50, "2")
Public GCF3 As Card = New Card(MyDeck, "Green", 5, 51, "3")
Public GCF4 As Card = New Card(MyDeck, "Green", 5, 52, "4")
Public GCF5 As Card = New Card(MyDeck, "Green", 5, 53, "5")
Public GCF6 As Card = New Card(MyDeck, "Green", 5, 54, "6")
Public GCF7 As Card = New Card(MyDeck, "Green", 5, 55, "7")
Public GCF8 As Card = New Card(MyDeck, "Green", 5, 56, "8")
Public GCF9 As Card = New Card(MyDeck, "Green", 5, 57, "9")
Public GCF10 As Card = New Card(MyDeck, "Green", 10, 58, "10")
Public GCF11 As Card = New Card(MyDeck, "Green", 10, 59, "11")
Public GCF12 As Card = New Card(MyDeck, "Green", 10, 60, "12")
Public GCS1 As Card = New Card(MyDeck, "Green", 5, 61, "1")
Public GCS2 As Card = New Card(MyDeck, "Green", 5, 62, "2")
Public GCS3 As Card = New Card(MyDeck, "Green", 5, 63, "3")
Public GCS4 As Card = New Card(MyDeck, "Green", 5, 64, "4")
Public GCS5 As Card = New Card(MyDeck, "Green", 5, 65, "5")
Public GCS6 As Card = New Card(MyDeck, "Green", 5, 66, "6")
Public GCS7 As Card = New Card(MyDeck, "Green", 5, 67, "7")
Public GCS8 As Card = New Card(MyDeck, "Green", 5, 68, "8")
Public GCS9 As Card = New Card(MyDeck, "Green", 5, 69, "9")
Public GCS10 As Card = New Card(MyDeck, "Green", 10, 70, "10")
Public GCS11 As Card = New Card(MyDeck, "Green", 10, 71, "11")
Public GCS12 As Card = New Card(MyDeck, "Green", 10, 72, "12")
'Yellow Cards 1 - 12
Public YCF1 As Card = New Card(MyDeck, "Yellow", 5, 73, "1")
Public YCF2 As Card = New Card(MyDeck, "Yellow", 5, 74, "2")
Public YCF3 As Card = New Card(MyDeck, "Yellow", 5, 75, "3")
Public YCF4 As Card = New Card(MyDeck, "Yellow", 5, 76, "4")
Public YCF5 As Card = New Card(MyDeck, "Yellow", 5, 77, "5")
Public YCF6 As Card = New Card(MyDeck, "Yellow", 5, 78, "6")
Public YCF7 As Card = New Card(MyDeck, "Yellow", 5, 79, "7")
Public YCF8 As Card = New Card(MyDeck, "Yellow", 5, 80, "8")
Public YCF9 As Card = New Card(MyDeck, "Yellow", 5, 81, "9")
Public YCF10 As Card = New Card(MyDeck, "Yellow", 10, 82, "10")
Public YCF11 As Card = New Card(MyDeck, "Yellow", 10, 83, "11")
Public YCF12 As Card = New Card(MyDeck, "Yellow", 10, 84, "12")
Public YCS1 As Card = New Card(MyDeck, "Yellow", 5, 85, "1")
Public YCS2 As Card = New Card(MyDeck, "Yellow", 5, 86, "2")
Public YCS3 As Card = New Card(MyDeck, "Yellow", 5, 87, "3")
Public YCS4 As Card = New Card(MyDeck, "Yellow", 5, 88, "4")
Public YCS5 As Card = New Card(MyDeck, "Yellow", 5, 89, "5")
Public YCS6 As Card = New Card(MyDeck, "Yellow", 5, 90, "6")
Public YCS7 As Card = New Card(MyDeck, "Yellow", 5, 91, "7")
Public YCS8 As Card = New Card(MyDeck, "Yellow", 5, 92, "8")
Public YCS9 As Card = New Card(MyDeck, "Yellow", 5, 93, "9")
Public YCS10 As Card = New Card(MyDeck, "Yellow", 10, 94, "10")
Public YCS11 As Card = New Card(MyDeck, "Yellow", 10, 95, "11")
Public YCS12 As Card = New Card(MyDeck, "Yellow", 10, 96, "12")
'WILD CARDS
Public WCFR As Card = New Card(MyDeck, "Red", 25, 97, "Wild")
Public WCSR As Card = New Card(MyDeck, "Red", 25, 98, "Wild")
Public WCFB As Card = New Card(MyDeck, "Blue", 25, 99, "Wild")
Public WCSB As Card = New Card(MyDeck, "Blue", 25, 100, "Wild")
Public WCFG As Card = New Card(MyDeck, "Green", 25, 101, "Wild")
Public WCSG As Card = New Card(MyDeck, "Green", 25, 102, "Wild")
Public WCFY As Card = New Card(MyDeck, "Yellow", 25, 103, "Wild")
Public WCSY As Card = New Card(MyDeck, "Yellow", 25, 104, "Wild")
'SKIP CARDS
Public SKP1 As Card = New Card(MyDeck, "Blue", 15, 105, "Skip")
Public SKP2 As Card = New Card(MyDeck, "Blue", 15, 106, "Skip")
Public SKP3 As Card = New Card(MyDeck, "Blue", 15, 107, "Skip")
Public SKP4 As Card = New Card(MyDeck, "Blue", 15, 108, "Skip")
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For Each card As Card In MyDeck.Collection
RichTextBox1.AppendText(ControlChars.NewLine & card.Text)
Next
End Sub
End Class
Public Class Card
Inherits System.Windows.Forms.Label
Public Property Points() As Integer
Get
Return Points
End Get
Set(ByVal Value As Integer)
Points = Value
End Set
End Property
Public Sub New(ByVal Deck As Deck, ByVal Color As String, ByVal Value As Integer, ByVal Index As Integer, ByVal Text As String)
Deck.Collection.Add(Index, Me) ' HERE IS WHERE IT SAYS MY PROBLEM IS
With Me
..Points = Value
..Text = Text
..BorderStyle = BorderStyle.FixedSingle
..BackColor = System.Drawing.Color.White
..Height = 25
..Width = 40
..Font = New Font("Arial", 30, FontStyle.Regular, GraphicsUnit.Point)
..TextAlign = ContentAlignment.MiddleCenter
End With
Select Case Color
Case Is = "Red"
Me.ForeColor = System.Drawing.Color.Red
Case Is = "Blue"
Me.ForeColor = System.Drawing.Color.Blue
Case Is = "Green"
Me.ForeColor = System.Drawing.Color.Green
Case Is = "Yellow"
Me.ForeColor = System.Drawing.Color.Yellow
Case Else
Me.ForeColor = System.Drawing.Color.Black
End Select
End Sub
End Class
Public Class Deck
Private Cards As System.Collections.SortedList = New System.Collections.SortedList(108)
Public ReadOnly Property Collection() As System.Collections.SortedList
Get
Return Collection
Collection = Cards
End Get
End Property
End Class
Object reference not set to an instance of an object.
Deck.Collection.Add(Index, Me)
but it is set to an instance in the collection property of the deck class
what am i doing wrong?
by the way this is my project for PHase 10 the card game just so that you knw what you are looking at
WStoreyII
Dim MyDeck As Deck = New Deck
#Region " Cards "
' Phases
Public Phase() As String = {"Phases", Phase1, Phase2, Phase3, Phase4, Phase5, Phase6, Phase7, Phase8, Phase9, Phase10}
Public Const Phase1 As String = " 2 sets of 3 "
Public Const Phase2 As String = " 1 set of 3 + 1 run of 4 "
Public Const Phase3 As String = " 1 set of 4 + 1 run of 4 "
Public Const Phase4 As String = " 1 run of 7 "
Public Const Phase5 As String = " 1 run of 8 "
Public Const Phase6 As String = " 1 run of 9 "
Public Const Phase7 As String = " 2 sets of 4 "
Public Const Phase8 As String = " 7 cards of one color "
Public Const Phase9 As String = " 1 set of 5 + 1 set of 2 "
Public Const Phase10 As String = " 1 set of 5 + 1 set of 3 "
'Red Cards 1 - 12
Public RCF1 As Card = New Card(MyDeck, "Red", 5, 1, "1")
Public RCF2 As Card = New Card(MyDeck, "Red", 5, 2, "2")
Public RCF3 As Card = New Card(MyDeck, "Red", 5, 3, "3")
Public RCF4 As Card = New Card(MyDeck, "Red", 5, 4, "4")
Public RCF5 As Card = New Card(MyDeck, "Red", 5, 5, "5")
Public RCF6 As Card = New Card(MyDeck, "Red", 5, 6, "6")
Public RCF7 As Card = New Card(MyDeck, "Red", 5, 7, "7")
Public RCF8 As Card = New Card(MyDeck, "Red", 5, 8, "8")
Public RCF9 As Card = New Card(MyDeck, "Red", 5, 9, "9")
Public RCF10 As Card = New Card(MyDeck, "Red", 10, 10, "10")
Public RCF11 As Card = New Card(MyDeck, "Red", 10, 11, "11")
Public RCF12 As Card = New Card(MyDeck, "Red", 10, 12, "12")
Public RCS1 As Card = New Card(MyDeck, "Red", 5, 13, "1")
Public RCS2 As Card = New Card(MyDeck, "Red", 5, 14, "2")
Public RCS3 As Card = New Card(MyDeck, "Red", 5, 15, "3")
Public RCS4 As Card = New Card(MyDeck, "Red", 5, 16, "4")
Public RCS5 As Card = New Card(MyDeck, "Red", 5, 17, "5")
Public RCS6 As Card = New Card(MyDeck, "Red", 5, 18, "6")
Public RCS7 As Card = New Card(MyDeck, "Red", 5, 19, "7")
Public RCS8 As Card = New Card(MyDeck, "Red", 5, 20, "8")
Public RCS9 As Card = New Card(MyDeck, "Red", 5, 21, "9")
Public RCS10 As Card = New Card(MyDeck, "Red", 10, 22, "10")
Public RCS11 As Card = New Card(MyDeck, "Red", 10, 23, "11")
Public RCS12 As Card = New Card(MyDeck, "Red", 10, 24, "12")
'Blue Cards 1 - 12
Public BCF1 As Card = New Card(MyDeck, "Blue", 5, 25, "1")
Public BCF2 As Card = New Card(MyDeck, "Blue", 5, 26, "2")
Public BCF3 As Card = New Card(MyDeck, "Blue", 5, 27, "3")
Public BCF4 As Card = New Card(MyDeck, "Blue", 5, 28, "4")
Public BCF5 As Card = New Card(MyDeck, "Blue", 5, 29, "5")
Public BCF6 As Card = New Card(MyDeck, "Blue", 5, 30, "6")
Public BCF7 As Card = New Card(MyDeck, "Blue", 5, 31, "7")
Public BCF8 As Card = New Card(MyDeck, "Blue", 5, 32, "8")
Public BCF9 As Card = New Card(MyDeck, "Blue", 5, 33, "9")
Public BCF10 As Card = New Card(MyDeck, "Blue", 10, 34, "10")
Public BCF11 As Card = New Card(MyDeck, "Blue", 10, 35, "11")
Public BCF12 As Card = New Card(MyDeck, "Blue", 10, 36, "12")
Public BCS1 As Card = New Card(MyDeck, "Blue", 5, 37, "1")
Public BCS2 As Card = New Card(MyDeck, "Blue", 5, 38, "2")
Public BCS3 As Card = New Card(MyDeck, "Blue", 5, 39, "3")
Public BCS4 As Card = New Card(MyDeck, "Blue", 5, 40, "4")
Public BCS5 As Card = New Card(MyDeck, "Blue", 5, 41, "5")
Public BCS6 As Card = New Card(MyDeck, "Blue", 5, 42, "6")
Public BCS7 As Card = New Card(MyDeck, "Blue", 5, 43, "7")
Public BCS8 As Card = New Card(MyDeck, "Blue", 5, 44, "8")
Public BCS9 As Card = New Card(MyDeck, "Blue", 5, 45, "9")
Public BCS10 As Card = New Card(MyDeck, "Blue", 10, 46, "10")
Public BCS11 As Card = New Card(MyDeck, "Blue", 10, 47, "11")
Public BCS12 As Card = New Card(MyDeck, "Blue", 10, 48, "12")
'Green Cards 1 - 12
Public GCF1 As Card = New Card(MyDeck, "Green", 5, 49, "1")
Public GCF2 As Card = New Card(MyDeck, "Green", 5, 50, "2")
Public GCF3 As Card = New Card(MyDeck, "Green", 5, 51, "3")
Public GCF4 As Card = New Card(MyDeck, "Green", 5, 52, "4")
Public GCF5 As Card = New Card(MyDeck, "Green", 5, 53, "5")
Public GCF6 As Card = New Card(MyDeck, "Green", 5, 54, "6")
Public GCF7 As Card = New Card(MyDeck, "Green", 5, 55, "7")
Public GCF8 As Card = New Card(MyDeck, "Green", 5, 56, "8")
Public GCF9 As Card = New Card(MyDeck, "Green", 5, 57, "9")
Public GCF10 As Card = New Card(MyDeck, "Green", 10, 58, "10")
Public GCF11 As Card = New Card(MyDeck, "Green", 10, 59, "11")
Public GCF12 As Card = New Card(MyDeck, "Green", 10, 60, "12")
Public GCS1 As Card = New Card(MyDeck, "Green", 5, 61, "1")
Public GCS2 As Card = New Card(MyDeck, "Green", 5, 62, "2")
Public GCS3 As Card = New Card(MyDeck, "Green", 5, 63, "3")
Public GCS4 As Card = New Card(MyDeck, "Green", 5, 64, "4")
Public GCS5 As Card = New Card(MyDeck, "Green", 5, 65, "5")
Public GCS6 As Card = New Card(MyDeck, "Green", 5, 66, "6")
Public GCS7 As Card = New Card(MyDeck, "Green", 5, 67, "7")
Public GCS8 As Card = New Card(MyDeck, "Green", 5, 68, "8")
Public GCS9 As Card = New Card(MyDeck, "Green", 5, 69, "9")
Public GCS10 As Card = New Card(MyDeck, "Green", 10, 70, "10")
Public GCS11 As Card = New Card(MyDeck, "Green", 10, 71, "11")
Public GCS12 As Card = New Card(MyDeck, "Green", 10, 72, "12")
'Yellow Cards 1 - 12
Public YCF1 As Card = New Card(MyDeck, "Yellow", 5, 73, "1")
Public YCF2 As Card = New Card(MyDeck, "Yellow", 5, 74, "2")
Public YCF3 As Card = New Card(MyDeck, "Yellow", 5, 75, "3")
Public YCF4 As Card = New Card(MyDeck, "Yellow", 5, 76, "4")
Public YCF5 As Card = New Card(MyDeck, "Yellow", 5, 77, "5")
Public YCF6 As Card = New Card(MyDeck, "Yellow", 5, 78, "6")
Public YCF7 As Card = New Card(MyDeck, "Yellow", 5, 79, "7")
Public YCF8 As Card = New Card(MyDeck, "Yellow", 5, 80, "8")
Public YCF9 As Card = New Card(MyDeck, "Yellow", 5, 81, "9")
Public YCF10 As Card = New Card(MyDeck, "Yellow", 10, 82, "10")
Public YCF11 As Card = New Card(MyDeck, "Yellow", 10, 83, "11")
Public YCF12 As Card = New Card(MyDeck, "Yellow", 10, 84, "12")
Public YCS1 As Card = New Card(MyDeck, "Yellow", 5, 85, "1")
Public YCS2 As Card = New Card(MyDeck, "Yellow", 5, 86, "2")
Public YCS3 As Card = New Card(MyDeck, "Yellow", 5, 87, "3")
Public YCS4 As Card = New Card(MyDeck, "Yellow", 5, 88, "4")
Public YCS5 As Card = New Card(MyDeck, "Yellow", 5, 89, "5")
Public YCS6 As Card = New Card(MyDeck, "Yellow", 5, 90, "6")
Public YCS7 As Card = New Card(MyDeck, "Yellow", 5, 91, "7")
Public YCS8 As Card = New Card(MyDeck, "Yellow", 5, 92, "8")
Public YCS9 As Card = New Card(MyDeck, "Yellow", 5, 93, "9")
Public YCS10 As Card = New Card(MyDeck, "Yellow", 10, 94, "10")
Public YCS11 As Card = New Card(MyDeck, "Yellow", 10, 95, "11")
Public YCS12 As Card = New Card(MyDeck, "Yellow", 10, 96, "12")
'WILD CARDS
Public WCFR As Card = New Card(MyDeck, "Red", 25, 97, "Wild")
Public WCSR As Card = New Card(MyDeck, "Red", 25, 98, "Wild")
Public WCFB As Card = New Card(MyDeck, "Blue", 25, 99, "Wild")
Public WCSB As Card = New Card(MyDeck, "Blue", 25, 100, "Wild")
Public WCFG As Card = New Card(MyDeck, "Green", 25, 101, "Wild")
Public WCSG As Card = New Card(MyDeck, "Green", 25, 102, "Wild")
Public WCFY As Card = New Card(MyDeck, "Yellow", 25, 103, "Wild")
Public WCSY As Card = New Card(MyDeck, "Yellow", 25, 104, "Wild")
'SKIP CARDS
Public SKP1 As Card = New Card(MyDeck, "Blue", 15, 105, "Skip")
Public SKP2 As Card = New Card(MyDeck, "Blue", 15, 106, "Skip")
Public SKP3 As Card = New Card(MyDeck, "Blue", 15, 107, "Skip")
Public SKP4 As Card = New Card(MyDeck, "Blue", 15, 108, "Skip")
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For Each card As Card In MyDeck.Collection
RichTextBox1.AppendText(ControlChars.NewLine & card.Text)
Next
End Sub
End Class
Public Class Card
Inherits System.Windows.Forms.Label
Public Property Points() As Integer
Get
Return Points
End Get
Set(ByVal Value As Integer)
Points = Value
End Set
End Property
Public Sub New(ByVal Deck As Deck, ByVal Color As String, ByVal Value As Integer, ByVal Index As Integer, ByVal Text As String)
Deck.Collection.Add(Index, Me) ' HERE IS WHERE IT SAYS MY PROBLEM IS
With Me
..Points = Value
..Text = Text
..BorderStyle = BorderStyle.FixedSingle
..BackColor = System.Drawing.Color.White
..Height = 25
..Width = 40
..Font = New Font("Arial", 30, FontStyle.Regular, GraphicsUnit.Point)
..TextAlign = ContentAlignment.MiddleCenter
End With
Select Case Color
Case Is = "Red"
Me.ForeColor = System.Drawing.Color.Red
Case Is = "Blue"
Me.ForeColor = System.Drawing.Color.Blue
Case Is = "Green"
Me.ForeColor = System.Drawing.Color.Green
Case Is = "Yellow"
Me.ForeColor = System.Drawing.Color.Yellow
Case Else
Me.ForeColor = System.Drawing.Color.Black
End Select
End Sub
End Class
Public Class Deck
Private Cards As System.Collections.SortedList = New System.Collections.SortedList(108)
Public ReadOnly Property Collection() As System.Collections.SortedList
Get
Return Collection
Collection = Cards
End Get
End Property
End Class