Step 1: download Protobuf and ref in prj , url :
http://code.google.com/p/protobuf-net/
Step 2: Simply change DataContract -> ProtoContract
DataMember -> Protomember (orderNo)
[ProtoContract]
public class CompositeType
{
bool boolValue = true;
string stringValue = "Hello ";
[ProtoMember(1)]
public bool BoolValue
{
get { return boolValue; }
set { boolValue = value; }
}
[ProtoMember(2)]
public string StringValue
{
get { return stringValue; }
set { stringValue = value; }
}
}