First; wrong forum. NetOutgoingMessage and WriteAllFields are part of
generation 3 of the library, it's preferred to post in the appropriate
forum:
http://groups.google.com/group/lidgren-network-gen3
However, Inherited members are not considered by the
WriteAllFields(object); but there is a WriteAllFields(object,
BindingFlags) which allows you to specify the binding flags you want
to use when retrieving the fields using reflection:
WriteAllFields(srcObject, BindingFlags.Public |
BindingFlags.Instance);
...
ReadAllFields(dstObject, BindingFlags.Public | BindingFlags.Instance);
... will serialize all public instance fields, including inherited
fields.
--michael