Hi
I have a class as below in VB.NET. The issue is class calling itself. So vb.NET throwing Stock Overflow exception. But the same class is working fine in VB6 version of code in VB6.
How to resolve this issue?
public class Party
Private mvarpartyCode as string
Private mvarpartyName as string
Private mvarpartyType as string
Private mvarTransporter as Party
Public Sub New()
mvarPartycode= ""
mvarPartyName=""
mvarPartyType=""
mvarTransporter = New Party
End Sub
Public Property For PartyCode variable
Public Property for PartyName variable
Public Property for PartyType variable
Public property for Transporter variable
End Class
I have a class as below in VB.NET. The issue is class calling itself. So vb.NET throwing Stock Overflow exception. But the same class is working fine in VB6 version of code in VB6.
How to resolve this issue?
public class Party
Private mvarpartyCode as string
Private mvarpartyName as string
Private mvarpartyType as string
Private mvarTransporter as Party
Public Sub New()
mvarPartycode= ""
mvarPartyName=""
mvarPartyType=""
mvarTransporter = New Party
End Sub
Public Property For PartyCode variable
Public Property for PartyName variable
Public Property for PartyType variable
Public property for Transporter variable
End Class