| Key points: |
- When serializing an instance of a given server-side class to the client, WebORB serializes all of its public fields and properties. To exclude, from such serialization to the client, a given:
- Field 'Foo': Decorate Foo's declaration with WebORB's [NonSerialized] attribute (see CreditScoreServer.cs, lines 31-32).
- Property 'Bar': Decorate Bar's class' declaration with WebORB's [ExcludeProperty("Bar")] attribute (see CreditScoreServer.cs, lines 22 and 29).
- In the sample application, the server-side code excludes the property 'SecretData' and the field 'SuperSecretData' from serialization to the client. Hence, Dr. Evil's aspirations of world domination, and monitoring by Austin Powers, are not exposed.
|