Example name: Client class member naming
Description: Uses WebORB's SetClientClassMemberNameAttribute to tell WebORB to map the server-side class member FibResult.Result (big 'R') to the client-side Data Transfer Object class member name FibResult.result (little 'r'), thereby complying with the name-capitalization conventions of both .NET and ActionScript simultaneously. See BasicCalcServer.cs, line 115.
Prerequisites:
Client-side code: Browse  Download
Server-side code: Browse  Download
Feature availability:
  • WebORB for .NET Development Mode
  • WebORB for .NET Community Edition
  • WebORB for .NET Enterprise Edition
Run example:
Key points:
  • Decorating a server-side .NET class member declaration with the attribute SetClientClassMemberNameAttribute, and an alternative name, tells WebORB to:
    • Use that alternative name for that server-side class member when generating code, and to
    • Expect to see that alternative name for that server-side class member in all hand-written code, also.
  • Useful when trying to (for example) support the .NET name -capitalization convention on the server-side, and the Flex/AS3 name-capitalization convention on the client-side.
Things to try:
  • Add SetClientClassMemberNameAttribute decorations to all class members exposed by this sample's server-side code, such that the resulting code satisfies the name-capitalization conventions of:
    • .NET on the server side, and of
    • ActionScript/Flex on the client side.
See also:
Errata:
  • None yet known.