L
lqs
hi£¡
i am writing a program using Socket . There is a class , for example:
public class Student
{
public int nAge;
public string strFirstName;
public string strLastName;
}
Student s=new Student();
s.nAge=22;
s.strFirstName="victor";
s.strLastName="Smith";
then ,before i send the 's' by send() function,how do i translate this
object (i mean 's') to byte[]?
Because the parameter of this send() is byte[].
Thank you for your help!
i am writing a program using Socket . There is a class , for example:
public class Student
{
public int nAge;
public string strFirstName;
public string strLastName;
}
Student s=new Student();
s.nAge=22;
s.strFirstName="victor";
s.strLastName="Smith";
then ,before i send the 's' by send() function,how do i translate this
object (i mean 's') to byte[]?
Because the parameter of this send() is byte[].
Thank you for your help!