Home › Forums › Support › [Help] Custom Class and Coding › Reply To: [Help] Custom Class and Coding
January 31, 2015 at 19:42
#3658
Inactive
I think this is the same as what tricked me in the first case. Turned out i needed to define which properties were serialized and in which order before the object could be send/recieved.
Im quite unfamiliar with Protobuf though, so only using [ProtoContract] might be sufficient but i havent tested this yet.
Like this:
[ProtoContract]
public class LoginPacket
{
[ProtoMember(1)]
public string Username { get; set; }
[ProtoMember(2)]
public string Password { get; set; }
}
-
This reply was modified 9 years, 7 months ago by
.
-
This reply was modified 9 years, 7 months ago by
.