Attributes aren't really data for the class -- they're metadata. So they do
not get passed across the wire. What the server passes in a ObjRef that
contains the class name and the interfaces it implements to the client. I'm
not sure what you mean by "inherited objects".
You best bet is to see for yourself what gets passed. Once you get the
object on the client side, use RemotingServices.GetObjRefForProxy() to get
the ObjRef that was passed from the server. Then use the SoapFormatter to
serialize this to disk. You can then open it in notepad and see exactly what
gets passed.
ken
Sorry -- just re-read your post. Since the object is serializable, there's
no ObjRef. The object is serialized and passed down in its entirety.
However, attributes aren't serialized bevause they're not instance-specific.
I'm still not sure what you mean by "inherited objects", but if you mean the
fields of base classes, then yes those are also serialized.
Ken
> Attributes aren't really data for the class -- they're metadata. So they do
> not get passed across the wire. What the server passes in a ObjRef that
[quoted text clipped - 16 lines]
> > Thanks!
> > Ron,
Ron - 24 Dec 2004 18:30 GMT
Thansk Ken for the help
Concerning the attribute, the Attribute is a custom attribute class which
is also marked with the [Serialization()] attribute. The attribute contains
two public properties.
So the attribute (and properties of) will not be serialized at all to the
client?
Thansk!
> Sorry -- just re-read your post. Since the object is serializable, there's
> no ObjRef. The object is serialized and passed down in its entirety.
[quoted text clipped - 29 lines]
> > > Thanks!
> > > Ron,
Ken Kolda - 27 Dec 2004 16:24 GMT
The attribute will not be serialized. Attributes should be considered part
of the definition of the type, not instance data. So, just as the
serialization doesn't serialize the method definitions and the entire type
of teh stream, the attributes would not be serialized either.
Ken
> Thansk Ken for the help
>
[quoted text clipped - 43 lines]
> > > > Thanks!
> > > > Ron,
Ron - 27 Dec 2004 17:09 GMT
Thanks,
> The attribute will not be serialized. Attributes should be considered part
> of the definition of the type, not instance data. So, just as the
[quoted text clipped - 57 lines]
> > > > > Thanks!
> > > > > Ron,