If I have the following class:
Private strFName as string
Private strLName as string
strFName = ""
strLNAme = ""
Public Sub SetValues(byval FirstName as string, byval LastName as string)
strLANme = LastName
Public Property Get FullName() as string
FullName = strfName & " " & strLName
As you can see, I can initialize the class:
Dim cthis as new Class1
cthis.SetValues "Armando", "Ruiz"
now, my question is: I want to send this class(object) by winsock and udp or tcp protocol, how do i determine the size in bytes of my class?