Over the past few weeks I've been writing about different ways that Web Services can be used by ASP.NET AJAX applications. In this article I'll discuss how complex types written in C# or VB.NET can be returned to an AJAX client and used in a page.
By complex type, I mean any object that contains sub-objects exposed through properties. The code below shows an example of a complex type named CustomerDetails that inherits from Customer and exposes an Address property of type Address. The Address type contains street, city, ZIP code and state information.