Hallo zusammen,
hier ein Teil meiner Klasse
Leider funktioniert der Teil: StackAllCards nicht.
Was muß ich Ändern?
Vielen Dank im voraus
Wastl
hier ein Teil meiner Klasse
VB.NET-Quellcode
- Imports System.Collections.Generic
- Public Class Class1
- Implements IEquatable(Of Class1)
- Public Property StackTyp() As Integer
- Get
- Return m_StackTyp
- End Get
- Set(value As Integer)
- m_StackTyp = value
- End Set
- End Property
- Private m_StackTyp As Integer
- Public Property StackID() As Integer
- Get
- Return m_StackID
- End Get
- Set(value As Integer)
- m_StackID = value
- End Set
- End Property
- Private m_StackID As Integer
- Public Property StackWert() As Integer
- Get
- Return m_StackWert
- End Get
- Set(value As Integer)
- m_StackWert = value
- End Set
- End Property
- Private m_StackWert As Integer
- Public Property StackAllCards(ByVal Index As Integer) As Integer
- Get
- Return m_StackAllCards(Index)
- End Get
- Set(value As Integer)
- m_StackAllCards.Add(value)
- End Set
- End Property
- Private m_StackAllCards As List(Of Integer)
- Public Function Equals1(other As Class1) As Boolean Implements IEquatable(Of Class1).Equals
- If other Is Nothing Then
- Return False
- End If
- Return (Me.StackTyp.Equals(other.StackTyp))
- End Function
- Public Overrides Function GetHashCode() As Integer
- Return StackTyp
- End Function
- Public Overrides Function Equals(obj As Object) As Boolean
- If obj Is Nothing Then
- Return False
- End If
- Dim objAsPart As Class1 = TryCast(obj, Class1)
- If objAsPart Is Nothing Then
- Return False
- Else
- Return Equals(objAsPart)
- End If
- End Function
- End Class
Leider funktioniert der Teil: StackAllCards nicht.
Was muß ich Ändern?
Vielen Dank im voraus
Wastl